rem


rem(r1, r2)
      

Return the remainder of the real numbers r1 and r2. The remainder has the same sign as r1.

Examples:


rem(10, 5.2)
// 4.8
rem(10, -5.2)
// 4.8
rem(-10, -5.2)
// -4.8
      

Also see:

quo
mod
div


Core Module Index | Contents