From the PBWin 9.0 help on the CINT-CWRD group:
It seems that the last two examples are not in sync with the statement. It seems pretty obvious to me but I thought I'd post just in case I've had my head buried in numbers too long to understand words before sending it in to support.
I would think that if the numbers are being rounded to the nearest even integer that the last two examples would return 0, for those of us that consider 0 an even integer.
After testing, CINT(0.5) returns 0, CINT(-0.6) returns -1, CINT(0.6) returns 1.
In the case of the functions that convert to integer-class values, the fractional part of the number is rounded to the nearest even number. For example, CINT(1.5) returns 2, CINT(.5) returns 2, and CLNG(-0.6) returns -1.
I would think that if the numbers are being rounded to the nearest even integer that the last two examples would return 0, for those of us that consider 0 an even integer.
After testing, CINT(0.5) returns 0, CINT(-0.6) returns -1, CINT(0.6) returns 1.
Comment