Content deleted Content added
Matthiaspaul (talk | contribs) →See also: +link |
No edit summary |
||
Line 7:
A position for the 'binary point' is chosen for each variable to be represented, and binary shifts associated with arithmetic operations are adjusted accordingly. The binary scaling corresponds in [[Q (number format)]] to the first digit, i.e. Q1.15 is a 16 bit integer
scaled with one bit as integer and fifteen as fractional. A Bscal 1 or Q1.15 number would represent approx 1.999 to
To give an example, a common way to use [[arbitrary-precision arithmetic|integer arithmetic]] to simulate floating point, using 32 bit numbers, is to multiply the coefficients by 65536.
Line 60:
To convert back to floating point, divide this by {{code|1=(2^(wordsize-7-1)) == 21.2800000099}}
Various scalings may be used. B0 for instance can be used to represent any number between
=={{anchor|BAM}}Binary angles==
|