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:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5