public final class ParsingUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static double | parseNumber(String number)Parses a string with the default locale and returns the corresponding number | 
| static double | parseNumber(String number,
           Locale locale)Parses a string with a locale and returns the corresponding number | 
| static double | scaleValue(double value)Scales a double value, taking into account 2 decimals | 
| static double | scaleValue(double value,
          int decimals)Scales a double value with decimals | 
public static double parseNumber(String number, Locale locale) throws ParseException
ParseException - if number cannot be parsedpublic static double parseNumber(String number) throws ParseException
ParseException - if number cannot be parsedpublic static double scaleValue(double value)
public static double scaleValue(double value, int decimals)
Copyright © 2009–2016 SonarSource. All rights reserved.