Method ParseDoubleSplit
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
ParseDoubleSplit(double, in int, in double, in bool)
Parses the double value into short scale notation, splitting the data into the separate parts.
public static ShortScaleData ParseDoubleSplit(double value, in int precision = 3, in double startShortScale = 1000000, in bool useSymbol = false)
Parameters
value
doubleThe input value that will be parsed.
precision
int(Optional) The decimal precision that should be represented (subject to data type round off). Default value is 3.
startShortScale
double(Optinal) Set the value to begin parsing to short scale. Default value is 1 million.
useSymbol
bool(Optional) use the single symbol list for more shortened notation. currently supports only to Decillion. Default value is false.
Returns
- ShortScaleData
A ShortScaleData object containing the value and symbol.
ParseDoubleSplit(double, ref ShortScaleData, in int, in double, in bool)
Parses a double value into short scale notation, splitting the data into the separate parts.
public static void ParseDoubleSplit(double value, ref ShortScaleData data, in int precision = 3, in double startShortScale = 1000000, in bool useSymbol = false)
Parameters
value
doubleThe input value that will be parsed.
data
ShortScaleDataA referencce to an existing data to reuse the same object.
precision
int(Optional) The decimal precision that should be represented (subject to data type round off). Default value is 3.
startShortScale
double(Optinal) Set the value to begin parsing to short scale. Default value is 1 million.
useSymbol
bool(Optional) use the single symbol list for more shortened notation. currently supports only to Decillion. Default value is false.