|
|
|
|
|
by hinkley
811 days ago
|
|
It’s about 2.5 times as much memory, if you do base 10. 65k is a little less than 5 bytes to represent 2. But floats are not the right representation for values that need to exactly match, like an ID, to be sure. If I’m off by half a cent it’s annoying. If I’m off by half a row I get nothing. The thing is that almost all of the problems we had in my initial story came from choosing system defaults. All except the PK algorithm. |
|
However I read the post I responded to as decrying all floating-point formats, regardless of base. That leaves only fixed-point (fancy integers) and rationals. To represent numbers with the same range as double precision, you'd need about 2048 bits for either alternative. And rational arithmetic is really slow due to heavy reliance on the GCD operation.