toUnsignedBinaryFixedPoint
Converts a BinaryFixedPoint to its unsigned equivalent at the
same totalBits and fractionalBits.
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 |
TFractionalBits extends number |
Parameters
| Parameter | Type |
|---|---|
value | BinaryFixedPoint<Signedness, TTotalBits, TFractionalBits> |
Returns
BinaryFixedPoint<"unsigned", TTotalBits, TFractionalBits>