[fpc-pascal] Floor, Ceil and Int64
Peter
peter at pblackman.plus.com
Wed Jul 1 14:30:29 CEST 2015
On 30/03/15 18:56, Bart wrote:
> Hi,
>
> 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
>
> Bart
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
Hi Bart,
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).
Regards,
Peter
More information about the fpc-pascal
mailing list