[fpc-devel] rounding precision error with integer and floating point division
Michael Schnell
mschnell at lumino.de
Fri Nov 18 12:59:34 CET 2011
On 11/18/2011 12:04 PM, Jonas Maebe wrote:
>
>
> http://wiki.freepascal.org/User_Changes_2.2.0#Floating_point_constants
Taking a look at the "go" language:
Here all constants are considered to be of arbitrary precision. This
also holds for integers !
A constant can be "10<<1000" there.
Compiler magic provides that when assigning such a constant to a really
existing variable the appropriate thing happens (which of course can be
an exception).
Seems like nice to me.
-Michael
More information about the fpc-devel
mailing list