in reply to modulo 1 (%1) and fractional part of a number
Rather than making a special oddball case for %, I'd suggest a better solution would be to just add fmod() (a standard C function) to the list of numeric functions we already have.
Update: I just happened to search CPAN, and found that POSIX::2008 provides the fmod function, there may be others as well.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: modulo 1 (%1) and fractional part of a number
by syphilis (Archbishop) on Sep 27, 2018 at 12:50 UTC |