Modulo of negative values
balsamicode
Member Posts: 36
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?
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?