Skip to content
Prev 349022 / 398500 Next

Annoyance with %/%

But the other sacred rule is that a%%b is >=0 and <b.

By the way, you will run into problems with %% long before Inf.  E.g.,
  > (1 + 2^53) %% 2 # 1 if you had infinite precision
  [1] 0
  > (2 + 2^53) %% 2
  [1] 0
  Warning message:
  probable complete loss of accuracy in modulus


Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Wed, Mar 11, 2015 at 4:25 AM, ALBERTO VIEIRA FERREIRA MONTEIRO <
albmont at centroin.com.br> wrote: