parse_units
Converts human-readable token amounts to UINT256 raw values by multiplying by 10^decimals.
- parse_units(VARCHAR)
- parse_units(VARCHAR, INTEGER)
- parse_units(VARCHAR, UTINYINT)
- parse_units(VARCHAR, UINT8)
- parse_units(DOUBLE)
- parse_units(DOUBLE, INTEGER)
- parse_units(DOUBLE, UTINYINT)
- parse_units(DOUBLE, UINT8)
- parse_units(FLOAT)
- parse_units(FLOAT, INTEGER)
- parse_units(FLOAT, UTINYINT)
- parse_units(FLOAT, UINT8)
- parse_units(TINYINT)
- parse_units(TINYINT, INTEGER)
- parse_units(TINYINT, UTINYINT)
- parse_units(TINYINT, UINT8)
- parse_units(SMALLINT)
- parse_units(SMALLINT, INTEGER)
- parse_units(SMALLINT, UTINYINT)
- parse_units(SMALLINT, UINT8)
- parse_units(INTEGER)
- parse_units(INTEGER, INTEGER)
- parse_units(INTEGER, UTINYINT)
- parse_units(INTEGER, UINT8)
- parse_units(BIGINT)
- parse_units(BIGINT, INTEGER)
- parse_units(BIGINT, UTINYINT)
- parse_units(BIGINT, UINT8)
- parse_units(HUGEINT)
- parse_units(HUGEINT, INTEGER)
- parse_units(HUGEINT, UTINYINT)
- parse_units(HUGEINT, UINT8)
- parse_units(UTINYINT)
- parse_units(UTINYINT, INTEGER)
- parse_units(UTINYINT, UTINYINT)
- parse_units(UTINYINT, UINT8)
- parse_units(USMALLINT)
- parse_units(USMALLINT, INTEGER)
- parse_units(USMALLINT, UTINYINT)
- parse_units(USMALLINT, UINT8)
- parse_units(UINTEGER)
- parse_units(UINTEGER, INTEGER)
- parse_units(UINTEGER, UTINYINT)
- parse_units(UINTEGER, UINT8)
- parse_units(UBIGINT)
- parse_units(UBIGINT, INTEGER)
- parse_units(UBIGINT, UTINYINT)
- parse_units(UBIGINT, UINT8)
- parse_units(UHUGEINT)
- parse_units(UHUGEINT, INTEGER)
- parse_units(UHUGEINT, UTINYINT)
- parse_units(UHUGEINT, UINT8)
- parse_units(UINT256)
- parse_units(UINT256, INTEGER)
- parse_units(UINT256, UTINYINT)
- parse_units(UINT256, UINT8)
parse_units(VARCHAR)
Parse a decimal string to UINT256 with 18 decimals (ETH-style).
Parameters
| Name | Type |
|---|---|
| value | VARCHAR |
Returns
| Name | Type |
|---|---|
| raw_amount | UINT256 |
parse_units(VARCHAR, INTEGER)
Parse a decimal string to UINT256 with custom decimals.
Parameters
| Name | Type |
|---|---|
| value | VARCHAR |
| decimals | INTEGER |
Returns
| Name | Type |
|---|---|
| raw_amount | UINT256 |
parse_units(VARCHAR, UTINYINT)
Parse a double to UINT256 with 18 decimals. Uses string conversion internally.
Parameters
| Name | Type |
|---|---|
| value | VARCHAR |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| raw_amount | UINT256 |
parse_units(VARCHAR, UINT8)
Parse a double to UINT256 with custom decimals.
Parameters
| Name | Type |
|---|---|
| value | VARCHAR |
| decimals | UINT8 |
Returns
| Name | Type |
|---|---|
| raw_amount | UINT256 |
parse_units(DOUBLE)
Parse an integer to UINT256 with 18 decimals.
Parameters
| Name | Type |
|---|---|
| value | DOUBLE |
Returns
| Name | Type |
|---|---|
| raw_amount | UINT256 |
parse_units(DOUBLE, INTEGER)
Parse an integer to UINT256 with custom decimals.
Parameters
| Name | Type |
|---|---|
| value | DOUBLE |
| decimals | INTEGER |
Returns
| Name | Type |
|---|---|
| raw_amount | UINT256 |
parse_units(DOUBLE, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | DOUBLE |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(DOUBLE, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | DOUBLE |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(FLOAT)
Parameters
| Name | Type |
|---|---|
| arg1 | FLOAT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(FLOAT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | FLOAT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(FLOAT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | FLOAT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(FLOAT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | FLOAT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(TINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | TINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(TINYINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | TINYINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(TINYINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | TINYINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(TINYINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | TINYINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(SMALLINT)
Parameters
| Name | Type |
|---|---|
| arg1 | SMALLINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(SMALLINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | SMALLINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(SMALLINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | SMALLINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(SMALLINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | SMALLINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(INTEGER, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | INTEGER |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(INTEGER, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | INTEGER |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(INTEGER, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | INTEGER |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(BIGINT)
Parameters
| Name | Type |
|---|---|
| arg1 | BIGINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(BIGINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | BIGINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(BIGINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | BIGINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(BIGINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | BIGINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(HUGEINT)
Parameters
| Name | Type |
|---|---|
| arg1 | HUGEINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(HUGEINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | HUGEINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(HUGEINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | HUGEINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(HUGEINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | HUGEINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UTINYINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | UTINYINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UTINYINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | UTINYINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UTINYINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | UTINYINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(USMALLINT)
Parameters
| Name | Type |
|---|---|
| arg1 | USMALLINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(USMALLINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | USMALLINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(USMALLINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | USMALLINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(USMALLINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | USMALLINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UINTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | UINTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UINTEGER, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | UINTEGER |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UINTEGER, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | UINTEGER |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UINTEGER, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | UINTEGER |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UBIGINT)
Parameters
| Name | Type |
|---|---|
| arg1 | UBIGINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UBIGINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | UBIGINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UBIGINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | UBIGINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UBIGINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | UBIGINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UHUGEINT)
Parameters
| Name | Type |
|---|---|
| arg1 | UHUGEINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UHUGEINT, INTEGER)
Parameters
| Name | Type |
|---|---|
| arg1 | UHUGEINT |
| arg2 | INTEGER |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UHUGEINT, UTINYINT)
Parameters
| Name | Type |
|---|---|
| arg1 | UHUGEINT |
| arg2 | UTINYINT |
Returns
| Name | Type |
|---|---|
| result | UINT256 |
parse_units(UHUGEINT, UINT8)
Parameters
| Name | Type |
|---|---|
| arg1 | UHUGEINT |
| arg2 | UINT8 |
Returns
| Name | Type |
|---|---|
| result | UINT256 |