sol
Parses a decimal string as a Sol fixed-point value.
The default rounding mode is 'strict', which throws
SOLANA_ERROR__FIXED_POINTS__STRICT_MODE_PRECISION_LOSS when the input
has more than 9 fractional digits. Pass another RoundingMode to accept
a rounded result.
Parameters
| Parameter | Type |
|---|---|
value | string |
rounding? | RoundingMode |