numeric

Definition

Fixed-Point Number Representation

Fixed-point number representation is a method for representing decimal numbers on the computer.

Layout

Let be the bit length of the pre-comma part, and be the bit length of the post-comma part, then the total length of this fragment is:

The first bit denotes the sign of the represented number, where:

  • means positive, and
  • means negative.