Yves,
This is caused by the definition of rounding from LabVIEW:
The int() / Round To Nearest function does this:
Rounds the input to the nearest integer. If the value of the input is midway
between two integers (for example, 1.5 or 2.5), the function returns the
nearest even integer (2).
So:
int(1.4999999999) => 1
int(1.5000000000) => 2
int(2.4999999999) => 2
int(2.5000000000) => 2 !!!
This is exactly accoring the rules (IEEE 754)! Read about the rules in:
http://http.cs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF
It is like this to prevent rounding bias.
Regards,
Wiebe.
"Yves"
wrote in message
news:506500000005000000D9A80000-1031838699000@exchange.ni.com...
> I just found a problem: the value #.25 doesn't work! th
e vaule is
> rounded to #.0.
> any solution?