Binary angular measurement: Difference between revisions

Content deleted Content added
m Reverted edits by 103.147.136.204 (talk) (HG) (3.4.10)
Signed fraction of turn: Typo: interpretes -> interpreted
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 17:
===Signed fraction of turn===
 
Alternatively, the same ''n'' bits can also be interpreted as a signed integer in the range {−2<sup>''n''−1</sup> .. 2<sup>''n''−1</sup>-1} in the [[two's complement]] convention. They can also be interpretesinterpreted as a fraction of a full turn between −0.5 (inclusive) and +0.5 (exclusive) in signed fixed-point format, with the same scaling factor; or a fraction of half-turn between −1.0 (inclusive) and +1.0 (exclusive) with scaling factor 1/2<sup>''n''−1</sup>.
 
Either way, these numbers can then be interpreted as angles between -180° (inclusive) and +180° (exclusive), with −0.25 meaning −90° and +0.25 meaning +90°. The result of adding or subtracting the numerical values will have the same sign as the result of adding or subtracting angles, once reduced to this range. This interpretation eliminates the need to reduce angles to the range [−π,+π] when computing [[trigonometric functions]].