Web3S_Demo > Web 3S Uint 256Function Library > ToDecString

ToDecString

Converts uint256 to String in decimal notation.

Inputs

Value
Uint 256 Structure (by ref)

The value to be converted.

Exponent
Integer

The exponent describes the number of digits to move the decimal point to the left or right. A positive exponent moves the decimal point to the right while a negative exponent moves it to the left.

Min Int Digits
Integer

Minimum number of integral digits for the returned value. Digits will be zero-padded if value uses fewer digits than the minimum specified. (Default: 1)

Min Frac Digits
Integer

Minimum number of fractional digits for the returned value. Digits will be zero-padded if value uses fewer digits than the minimum specified. (Default: 0)

Max Frac Digits
Integer

Maximum number of fractional digits for the returned value. Truncates fractional part to specified number of digits. (Default: 18)

Outputs

Return Value
String

Value in decimal notation.