[fpc-pascal] Floor, Ceil and Int64
peter at pblackman.plus.com
Wed Jul 1 14:30:29 CEST 2015
On 30/03/15 18:56, Bart wrote:
> Floor and Ceil (math unit) only return integers.
> Should there be an overloaded one for Int64 as well?
> B = 11111111111.111100000000000
> Trunc(B) = 11111111111 [00000002964619C7]
> Frac(B) = 0.111110687255859
> Floor(B) = -1773790777 [FFFFFFFF964619C7] //expected: 11111111111
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
Agree it would be nice to have a wider range for Floor & Ceil.
I would suggest raising a bug report for this.
Its not been fixed in trunk (as of this post).
More information about the fpc-pascal