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 integer 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)


public String EncodeRealNumberRange(
         Int32 number,
         Int32 maxNumDigits,
         Int32 offsetValue


Type: System.Int32

integer to be encoded

Type: System.Int32

maximum number of digits in the largest absolute value in the data set

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


For example, the integer value -123 offset by 1000 with a maximum of 6 digits would be: -123 + 1000, padded to 6 digits: 000877

Version Information

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