Encodes real float value into a string by offsetting and zero-padding
number up to the specified number of digits. Use this encoding method if the data
range set includes both positive and negative values.
Declaration Syntax
Parameters
- number (Single)
- floating point value to be encoded
- maxDigitsLeft (Int32)
- maximum number of digits left of the decimal point in the largest absolute value in the data set
- maxDigitsRight (Int32)
- maximum number of digits right of the decimal point in the largest absolute value in the data set, i.e. precision
- offsetValue (Int32)
- offset value, has to be greater than absolute value of any negative number in the data set.
Return Value
A string representation of the integer
Remarks
For example, the floating point value -123.456 offset by 1000 with
a maximum of 6 digits to the left, and 4 to the right would be:
0008765440