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

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: 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 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