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@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal