AWS SDK Version 3 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.

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.SimpleDB.dll
Version: 3.x.y.z

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: 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 Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms