Versions in this module Expand all Collapse all v0 v0.1.1 Sep 7, 2023 v0.1.0 Jun 1, 2023 Changes in this version + var ErrOverflow = errors.New("overflow") + var One = fixedOne + var Zero = Fixed + type Fixed struct + func BinCDF(n int, p Fixed, x int) Fixed + func BinCDF64(n int64, p Fixed, x int64) Fixed + func Div64(p, q int64) Fixed + func DivUint64(p, q uint64) Fixed + func FracFromBytes(x []byte) Fixed + func From(val float64) Fixed + func FromBytes(x []byte) Fixed + func New(val int) Fixed + func New64(val int64) Fixed + func (x Fixed) Abs() Fixed + func (x Fixed) Add(y Fixed) Fixed + func (x Fixed) Bytes() []byte + func (x Fixed) Ceil() int64 + func (x Fixed) Div(y Fixed) Fixed + func (x Fixed) EqualTo(y Fixed) bool + func (x Fixed) Float() float64 + func (x Fixed) Floor() int64 + func (x Fixed) GreaterThan(y Fixed) bool + func (x Fixed) LessThan(y Fixed) bool + func (x Fixed) Mul(y Fixed) Fixed + func (x Fixed) Neg() Fixed + func (x Fixed) Round() int64 + func (x Fixed) String() string + func (x Fixed) Sub(y Fixed) Fixed