Post subject: How does Fixed point 20.12 work?
Skilled player (1741)
Joined: 9/17/2009
Posts: 4981
Location: ̶C̶a̶n̶a̶d̶a̶ "Kanatah"
So, while this has been happening for a while now, I decided to ask after failing to find an answer. From this table I made, values start at a ratio of 0.000244, before somehow diverging further; some of the values even end in odd numbers despite the fact 244 is even. Can anyone please explain how exactly does this system work?
Noxxa
They/Them
Moderator, Expert player (4124)
Joined: 8/14/2009
Posts: 4090
Location: The Netherlands
Fixed point 20.12 means using 20 bits for the integer part of the number, and 12 bits for the fractional part. With 12 bits, there are 2^12 = 4096 possibilities for the fractional part, so the smallest possible difference in fractions is 1/4096 = exactly 0.000244140625. Basically, it 'diverges' because 0.000244 is a rounded approximation, not the exact number.
http://www.youtube.com/Noxxa <dwangoAC> This is a TAS (...). Not suitable for all audiences. May cause undesirable side-effects. May contain emulator abuse. Emulator may be abusive. This product contains glitches known to the state of California to cause egg defects. <Masterjun> I'm just a guy arranging bits in a sequence which could potentially amuse other people looking at these bits <adelikat> In Oregon Trail, I sacrificed my own family to save time. In Star trek, I killed helpless comrades in escape pods to save time. Here, I kill my allies to save time. I think I need help.
Skilled player (1741)
Joined: 9/17/2009
Posts: 4981
Location: ̶C̶a̶n̶a̶d̶a̶ "Kanatah"