• Home
  • Raw
  • Download

Lines Matching full:fixed

3 defines two fixed-point data types:
5 ``Fixed``
6 A 32-bit signed fixed-point number with a 16 bit twos-complement
9 A 16-bit signed fixed-point number with a 2 bit twos-complement
13 functions for converting between fixed-point, float and string representations.
43 """Converts a fixed-point number to a float given the number of
47 value (int): Number in fixed-point format.
64 """Converts a float to a fixed-point number given the number of
72 int: Fixed-point representation.
85 """Converts a float to a fixed-point number and back again.
87 By converting the float to fixed, rounding it, and converting it back
89 representable in fixed-point format.
114 """Converts a fixed-point number to a string representing a decimal float.
119 For example, to convert a fixed-point number in a 2.14 format, use
126 Use sporadically when you need to serialize or print the fixed-point number in
131 value (int): The fixed-point value to convert.
142 """Converts a string representing a decimal float to a fixed-point number.
149 int: Fixed-point representation.
153 >>> ## to convert a float string to a 2.14 fixed-point number:
162 """Convert a string to a decimal float with fixed-point rounding.
164 This first converts string to a float, then turns it into a fixed-point
194 """Convert float to string with fixed-point rounding.
198 fixed-point number with ``precisionBits`` fractional binary digits.
223 fixed-point using :func:`floatToFixed` if so.
229 int: A table version number, possibly corrected to fixed-point.
241 """Ensure a table version number is fixed-point.
247 int: A table version number, possibly corrected to fixed-point.