lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>  > -- % yields a negative result with positive arguments
>  > =math.mod(6.3, 2.1)
> 2.1
>  > =6.3%2.1
> -8.8817841970013e-16

Clearly the secondd answer is much closer to the exact answer (0.0) than
the first one :)

-- Roberto