Modulo of negative values

balsamicodebalsamicode Member Posts: 36
edited November -1 in Tech Support
Hi I'm quite new to GS and I got an issue with the modulo function.

Can someone explain to me why 123%100 = 23 but -123%100 = 77 ??

Is it just me or is this a bug? AFAIK -123%100 = -23

PS: I'm aware that abs(-123)%100 does the trick, but that's just a workaround for a buggy function, isn't it?
Sign In or Register to comment.