mirror of
https://github.com/Michaelangel007/apple2_print_fixed16_fraction.git
synced 2024-06-02 20:41:32 +00:00
Fix typo, clarify
This commit is contained in:
parent
2d952db908
commit
d9adfe73f7
|
@ -8,7 +8,9 @@ For example, the number `0.7106` in 16-bit fixed point is 0.71506 * 65536 = 46,5
|
||||||
|
|
||||||
How do we convert the number `$B5E9` back into `.7106` ? By _digit peeling._
|
How do we convert the number `$B5E9` back into `.7106` ? By _digit peeling._
|
||||||
|
|
||||||
1. Multipy N by 10
|
Given a fractional number `N` represented as 16-bit integer then:
|
||||||
|
|
||||||
|
1. Multiply N by 10
|
||||||
2. Print the Integer Part digit
|
2. Print the Integer Part digit
|
||||||
3. Set the Integer Part to zero
|
3. Set the Integer Part to zero
|
||||||
5. Have we printed the number of decimal digits we want? If no then goto step 1
|
5. Have we printed the number of decimal digits we want? If no then goto step 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user