Skip to main content
Version: Streamsheets 2.5

MOD

Returns the remainder of given number after it was divided by specified divisor. The result has the same sign as divisor.

Syntax

=MOD(Number, Divisor)

Arguments

NameDescription
NumberThe number for which the remainder should be calculated.
DivisorThe number by which the Number should be divided

Return

The remainder of applied division. Note: it always has the same sign as divisor.

Examples

FormulaResultComment
${formula}
1Remainder of 3/2
${formula}
1Same sign as divisor
${formula}
-1Same sign as divisor