Table of Contents

Method ParseFloatSplit

Namespace
_GrindFest.Scripts
Assembly
GrindFest.dll

ParseFloatSplit(float, in int, in float, in bool)

Parses the float value into short scale notation, splitting the data into the separate parts.

public static ShortScaleData ParseFloatSplit(float value, in int precision = 3, in float startShortScale = 1000000, in bool useSymbol = false)

Parameters

value float

The 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 float

(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.

ParseFloatSplit(float, ref ShortScaleData, in int, in float, in bool)

Parses a float value into short scale notation, splitting the data into the separate parts.

public static void ParseFloatSplit(float value, ref ShortScaleData data, in int precision = 3, in float startShortScale = 1000000, in bool useSymbol = false)

Parameters

value float

The input value that will be parsed.

data ShortScaleData

A 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 float

(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.