Kixtart sets variable type from left to right I believe. Thus in the first test you are doing an integer test & in the second a floating point check. As lonkero has shown floating point has a leak. Thus the comparison fails.

Thank you Patrick,

Your example did it for me. The execute statement must literally see the cbdl function surrounding all 4 numbers for it to work consistently. I got rid of my fudge factor & I am down to a score of 702.

[ 17. September 2002, 22:50: Message edited by: Jack Lothian ]
_________________________
Jack