Post Reply 
Any Binary Calculators
11-21-2019, 07:06 PM
Post: #11
RE: Any Binary Calculators
Generally, non-floating-point binary fractions are just handled as "fixed point". For example you might take your 32 bit number and assume the decimal point is the 16th bit. Addition and subtraction are handled normally, but for multiplication and division you might have to shift the result to get the decimal back where it belongs, just like multiplying by hand.

This is done on small, low power MCU's where floating point might be too expensive time-wise.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Any Binary Calculators - Kaliuzhkin - 11-20-2019, 07:09 PM
RE: Any Binary Calculators - Kaliuzhkin - 11-20-2019, 07:44 PM
RE: Any Binary Calculators - Jim Horn - 11-20-2019, 07:41 PM
RE: Any Binary Calculators - BruceH - 11-20-2019, 11:36 PM
RE: Any Binary Calculators - Joe Horn - 11-21-2019, 01:05 AM
RE: Any Binary Calculators - burkhard - 11-21-2019, 05:52 PM
RE: Any Binary Calculators - Kaliuzhkin - 11-21-2019, 06:23 PM
RE: Any Binary Calculators - KeithB - 11-21-2019 07:06 PM
RE: Any Binary Calculators - burkhard - 11-21-2019, 08:32 PM
RE: Any Binary Calculators - Claudio L. - 11-21-2019, 11:38 PM



User(s) browsing this thread: 1 Guest(s)