![]() | |
#21
| |||
| |||
|
|
On 2010-06-11, Lennart Jonsson<erik.lennart.jonsson (AT) gmail (DOT) com> wrote: On 2010-06-11 01:03, --CELKO-- wrote: [...] Otherwise, the result is the unique non-negative exact numeric value r with scale zero such that 1)r has the same sign as n. For negative n should r be positive or negative? |
|
from the above I think that version of the standard only allows for whole number n |
#22
| |||
| |||
|
|
MOD (12, 5) = 2 MOD(-12, 5) = -2 MOD (-12, -5) = -2 MOD (12, -5) = 2 MOD (NULL, 5) = NULL MOD (NULL, NULL) = NULL MOD (12, NULL) = NULL MOD (12, 0) = NULL MOD (-12, 0) = NULL MOD (0, 5) = 0 MOD (0, -5) = 0 MOD (0, 0) = NULL |
![]() |
| Thread Tools | |
| Display Modes | |
| |