Menu

#56 modulus

closed
nobody
None
5
2002-10-21
2002-10-17
Anonymous
No

mod(27:5) will result in 2.
can be done by:
param: x
x-floor(x/x(x(2))*x(2)

Discussion

  • Ondrej Palkovsky

    • status: open --> closed
     
  • Ondrej Palkovsky

    Logged In: YES
    user_id=88611

    Use the builtin '%' operator. It is not on the keyboard, but
    it works perfectly as 'mod' (in fact it calls fmod()
    function from mathlib)

     

Log in to post a comment.

MongoDB Logo MongoDB