Web3S_Demo > Web 3S Filecoin Function Library > Make Filecoin Value (Fractional)

Make Filecoin Value (Fractional)

Tries to parse the input string to a Filecoin value stored in an uint256 data type.

This function can handle fractional values as inputs but will eventually truncate the fractional part
after applying the unit conversion operation.

The input string must be a decimal value (i.e. no hex string inputs allowed).

Inputs

In
Exec

Value
String

The input value as string. Must be a decimal value.

Unit
EWeb3S_FilecoinUnit Enum

Describes in what unit the string should be interpreted as.

Outputs

Out
Exec

Value
Uint 256 Structure

The parsed uint256 value.

Success
Boolean

True, if the input string value could be parsed.