On Sat, 28 Apr 2018 10:55:10 +0200
Sven Barth via fpc-devel <fpc-devel@lists.freepascal.org> wrote:

>[...]
> The question is whether we should really return 0 for numbers that would 
> cause an integer overflow as from the user's perspective of this 
> function integers aren't involved at all (after all one passes in a 
> floating point value and receives one).
> Maybe it would be better if we'd provide an optimized Int() function and 
> Frac() then simply stays "d - Int(d)".

Since a float only stores the highest bits of a number, the fraction
of a high number is not stored aka treated as 0.

Mattias
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to