Hey,

 

I noticed that the math functions (+,-,/,*,etc.) all return integer values unless either parameter is a float, then it returns a float.  I have a slot value, defined as a long, such that the following,

 

(< ?longVal (- ?longVal2 10000))

 

never returns true (even when it should be true).  I understand that this is due to the loss in precision during the long-to-integer conversion, and I am able to make it work as follows,

 

(< (float ?longVal) (- (float ?longVal2) (float 10000)))

 

My question is this the “best” way to deal with this scenario?

 

-Mitch

Reply via email to