News for hackers. Stuff that matters.
Re:Common Lisp: Numbers by Veedrac on Friday June 14, 2019 @05:34PM (#20186842)
Generally, precision is pulled on-demand, as it is needed. If you compare two values as x < y, x and y will be evaluated to higher and higher precision until the answer is unambiguous. This can be an issue if the values are equal, since they often cannot be proven to be equal, so the evaluation may just outright fail to terminate.
Re:Common Lisp: Numbers by mehrdadn on Friday June 14, 2019 @05:41PM (#20186884)
That doesn't address the situation I outlined?
Re:Common Lisp: Numbers by rocqua on Friday June 14, 2019 @06:29PM (#20187176)
You store the expression. Because that expression is a computable real, you can calculate it to arbitrary precision.

This is quite inefficient for things like summing over a list. Or really, any kind of accumulation.