[fpc-pascal] Floor, Ceil and Int64

Bart bartjunk64 at gmail.com
Mon Mar 30 19:56:36 CEST 2015


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



More information about the fpc-pascal mailing list