standard notation to handle representation of a real number on a computer

76 Views Asked by At

Is there a standard notation to handle the effective representation of some real number $x$ on a finite machine ? I have in mind some kind of braces, but I am not sure it is appropriate. Let me try to precise my question. Fractional part function is handled with $\{\cdot\}$, the floor function with $\lfloor\cdot\rfloor$, the ceil function with $\lceil\cdot\rceil$, and so forth. I am looking something similar for effective representations.

1

There are 1 best solutions below

1
On

Scientific notation in base-2 is probably most appropriate for a standard computer, because it is exact with respect to how a modern computer natively represents a floating point number. For example, you could have 4 represented as $1.00 \ldots 0 \, \times 2^2$ in binary scientific notation . Here your mantissa (everything after the 1 in the first part of the expression ) will be some fixed number of binary (base-2) digits, depending on what the floating point convention dictates for the number of mantissa bits. The exponential you multiply this number between $1$ and $2$ by will always be $2^k$ for some integer $k$, and the range of possible $k$ will depend on how many bits are used for the exponent in your floating point convention (system/machine dependent).