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 positive single-precision floating point value into a string by zero-padding it to the specified number of digits.

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

Syntax

C#
public String EncodeZeroPadding(
         Single number,
         Int32 maxNumDigits
)

Parameters

number
Type: System.Single

positive floating point value to be encoded

maxNumDigits
Type: System.Int32

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

Return Value
Type: System.String
A string representation of the zero-padded floating point value

Remarks

This function only zero-pads digits to the left of the decimal point. For example, the value 123.456 encoded with a 6 digit maximum would be represented as 000123.456

Version Information

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