11-05-2022, 10:48 PM
@Jack
Involved semantics, I believe, when considering the sign...
True about truncated with FIX, I know, but I see the results appear to be rounded as follows:
PRINT FIX(3.8), FIX(-3.8) ' Results 3, -3. 3.8 to 3 is rounding down towards zero. -3.8 to -3 is rounding up towards zero. (-3 > -3.8)
PRINT INT(3.8), INT(-3.8) ' Results 3, -4. 3.8 to 3 is rounding down towards zero. -3.8 to -4 is rounding down towards zero. (-4 < -3.8)
Pete
Involved semantics, I believe, when considering the sign...
True about truncated with FIX, I know, but I see the results appear to be rounded as follows:
PRINT FIX(3.8), FIX(-3.8) ' Results 3, -3. 3.8 to 3 is rounding down towards zero. -3.8 to -3 is rounding up towards zero. (-3 > -3.8)
PRINT INT(3.8), INT(-3.8) ' Results 3, -4. 3.8 to 3 is rounding down towards zero. -3.8 to -4 is rounding down towards zero. (-4 < -3.8)
Pete