Web3S_Demo > Web 3S Filecoin Function Library > FilecoinValueToDec

FilecoinValueToDec

Converts uint256 to String in decimal notation.

Inputs

Value
Uint 256 Structure (by ref)

The value to be converted.

To Unit
EWeb3S_FilecoinUnit Enum

Describes in what unit the string should be interpreted as.

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

Outputs

Return Value
String

Value in decimal notation.