4 ms·
Common Lisp over here like: * (+ (+ 1 1) (expt 2 256)) 115792089237316195423570985008687907853269984665640564039457584007913129639938 * (+ 1 (+ 1 (expt
by epr 7y ago
Common Lisp over here like:
* (+ (+ 1 1) (expt 2 256))
115792089237316195423570985008687907853269984665640564039457584007913129639938
* (+ 1 (+ 1 (expt 2 256)))
115792089237316195423570985008687907853269984665640564039457584007913129639938
- FabHK 7y agoMany languages support BigFloats and BigInts, but this discussion is about IEEE 754 floats vs Gustavson's proposals.
- deathanatos 7y agoPython will happily do this too, if you remove the ".0" in the example, the values become integers, instead of floats, and the computation is precise. The point is to demonstrate a property of IEEE floats, not the language. I'd expect CL has some means of using IEEE floats too, and with the appropriate syntax, the same issues could be demonstrated.