[fpc-pascal] testing if a float has a fractional part
Benito van der Zander
benito at benibela.de
Fri May 11 23:59:09 CEST 2018
Hi,
after all these discussions about the frac function, what is the best
way to test if there is a fractional part? That is the most common thing
I use frac for
I have always used frac(x) = 0
Is that worse or better than int(x) = x ?
Benito
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180511/cfd8abcf/attachment.html>
More information about the fpc-pascal
mailing list