subtractBinaryFixedPoint
Subtracts b from a where both are BinaryFixedPoint values of
the same shape, and returns the result at the same shape.
Throws SOLANA_ERROR__FIXED_POINTS__SHAPE_MISMATCH if the two operands
differ in shape, and SOLANA_ERROR__FIXED_POINTS__ARITHMETIC_OVERFLOW
if the difference does not fit the target shape.
Type Parameters
| Type Parameter |
|---|
TSignedness extends Signedness |
TTotalBits extends number |
TFractionalBits extends number |
Parameters
| Parameter | Type |
|---|---|
a | BinaryFixedPoint<TSignedness, TTotalBits, TFractionalBits> |
b | NoInfer<BinaryFixedPoint<TSignedness, TTotalBits, TFractionalBits>> |
Returns
BinaryFixedPoint<TSignedness, TTotalBits, TFractionalBits>