AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
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.

Namespace: Amazon.SimpleDB.Util
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public String EncodeRealNumberRange(
         Single number,
         Int32 maxDigitsLeft,
         Int32 maxDigitsRight,
         Int32 offsetValue
)

Parameters

number
Type: System.Single

floating point value to be encoded

maxDigitsLeft
Type: System.Int32

maximum number of digits left of the decimal point in the largest absolute value in the data set

maxDigitsRight
Type: System.Int32

maximum number of digits right of the decimal point in the largest absolute value in the data set, i.e. precision

offsetValue
Type: System.Int32

offset value, has to be greater than absolute value of any negative number in the data set.

Return Value
Type: System.String
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

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5