Documentation
¶
Overview ¶
Package state provides custom type to encode state and error codes for uint128 and dec128 packages.
Index ¶
Constants ¶
View Source
const ( Default = State(0) Neg = State(1) Error = State(2) NaN = State(3) DivisionByZero = State(4) Overflow = State(5) Underflow = State(6) NegativeInUnsignedOp = State(7) NotEnoughBytes = State(8) InvalidFormat = State(9) PrecisionOutOfRange = State(10) RescaleToLessPrecision = State(11) SqrtNegative = State(12) )
State codes are hard-coded for binary compatibility.
Variables ¶
View Source
var OK = Default
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.