Posted: 27 Apr 2018 13:48 EDT Last activity: 6 Nov 2018 20:02 EST
Integer Divide Results are Rounded...
I generally like to avoid scripts if I can, but I wanted to do some integer arithmetic, and found that the result of an integer divide are being rounded! The result of an "a / 3" when a=2 is 1. And there doesn't seem to be any way to force it to be a 0. This is something that was resolved decades ago in the c language with the introduction of "\" for integer divides. It would be nice if Pega would implement that so we do integer arithmetic without scripts.