toUnsignedDecimalFixedPoint
Converts a DecimalFixedPoint to its unsigned equivalent at the
same totalBits and decimals.
Unsigned inputs are returned by reference unchanged; signed inputs are accepted as long as their raw value is non-negative.
Throws SOLANA_ERROR__FIXED_POINTS__VALUE_OUT_OF_RANGE when the input
represents a negative value that cannot be stored as unsigned.
Type Parameters
| Type Parameter |
|---|
TTotalBits extends number |
TDecimals extends number |
Parameters
| Parameter | Type |
|---|---|
value | DecimalFixedPoint<Signedness, TTotalBits, TDecimals> |
Returns
DecimalFixedPoint<"unsigned", TTotalBits, TDecimals>