in reply to Re: [OT: JavaScript] JS remainder operation ('%')
in thread [OT: JavaScript] JS remainder operation ('%')

What kind of machine are you using?

Windows 11, with Google Chrome.
What kind are you using ?
Apparently yours uses the sub FMOD { return $_[0] - int($_[0] / $_[1]) * $_[1]; } that harangzsolt33 posted, not the fmod() implementation that most(?) of us are seeing.

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: [OT: JavaScript] JS remainder operation ('%')
by ikegami (Patriarch) on Jan 18, 2024 at 14:31 UTC

    Nevermind, I just noticed that you changed the code before running it in Perl.