AWS SDK for .NET Documentation
EncodeRealNumberRange Method (number, maxDigitsLeft, maxDigitsRight, offsetValue)
AmazonAmazon.SimpleDB.UtilAmazonSimpleDBUtilEncodeRealNumberRange(Single, Int32, Int32, Int32) Did this page help you?   Yes   No    Tell us about it...
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
public static string EncodeRealNumberRange(
	float number,
	int maxDigitsLeft,
	int maxDigitsRight,
	int offsetValue
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
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

Assembly: AWSSDK (Module: AWSSDK) Version: (