3 ms·
Sixteen doesn't have 3 as a factor. IIRC, it's not possible to represent .1 (or is it .2) accurately in IEEE 754. Better to use duodecimal.
by eadmund 9y ago
Sixteen doesn't have 3 as a factor. IIRC, it's not possible to represent .1 (or is it .2) accurately in IEEE 754.
Better to use duodecimal.
- JadeNB 9y ago> IIRC, it's not possible to represent .1 (or is it .2) accurately in IEEE 754. > Better to use duodecimal. Assuming you mean the decimals 0.1 and 0.2, they can't be represented as terminating duodecimals (which is different from not being represented accurately!), either. Whatever base you choose, someone's favourite fraction won't have a terminating expansion.
- SAI_Peregrinus 9y agoIEEE754 includes two decimal floating point basic formats: decimal64 and decimal128. 0.1 can be accurately represented. Of course in any base there will be some non-terminating representations of rational numbers, so changing the base of the floating point system changes which numbers these are but does not eliminate them.