Scratch for Java

Operators::mod()

"mod" is an abbreviation for "modulo". Modulo returns the remainder when the first input is divided by the second input.

Syntax

Java

.mod(x, y)
.mod(x, y)

Parameters

Name Data Type Description
x double first value
y double second value

Return

double

mod()