Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 370 Bytes
layout language permalink command related_commands
api-command
Java
api/java/mod/
mod
add sub mul div
add/
sub/
mul/
div/

Command syntax

{% apibody %} number.mod(number) → number {% endapibody %}

Find the remainder when dividing two numbers.

Example: It's as easy as 2 % 2 = 0.

r.expr(2).mod(2).run(conn);
You can’t perform that action at this time.