AnsweredAssumed Answered

vrf Real?

Question asked by VRFuser on May 23, 2008
> I'm using a constant data real
> 32 with the value 2.2, but I get
> 2.200000047683716.

It's a rounding error, and every language suffers the same problem to some extent. There are several things you can do about it, but probably the easiest is to convert any constants explicitly. For instance, if you change the condition to asReal32(2.2)==A it works.

Also, Real64 works as expected without explicitly converting (though to what place that would hold true I don't know).

You are currently subscribed to vrf as: To subscribe please send an email to: "" with the word subscribe in the message body.
To unsubscribe send a blank email to "".
To send messages to this mailing list,  email "". 
If you need help with the mailing list send a message to "".
Search the "unofficial vrf archive" at "".
Search the Agilent vrf archive at "".