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

Syntax

C#
public String EncodeRealNumberRange(
         Int32 number,
         Int32 maxNumDigits,
         Int32 offsetValue
)
Parameters
number
Type: System.Int32

integer to be encoded

maxNumDigits
Type: System.Int32

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

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 integer value -123 offset by 1000 with a maximum of 6 digits would be: -123 + 1000, padded to 6 digits: 000877

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