Web3S_Demo > Web 3S Ethereum Function Library > Make Eth Value from String with Fractional Value

Make Eth Value from String with Fractional Value

Tries to parse the input string to an Ethereum 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_EthereumUnit 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.