pymoose.fixed#

pymoose.fixed(integ, frac)[source]#

Factory function for creating a fixedpoint DType.

Parameters
  • integ – Integral precision; number of bits to reserve for the integral part of the number.

  • frac – Fractional precision; number of bits to reserve for the fractional part of the number.

Returns

DType object representing a fixedpoint number w/ a particular integral and fractional precision.