Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 370 Bytes

mod.md

File metadata and controls

26 lines (20 loc) · 370 Bytes
layout api-command
language Java
permalink api/java/mod/
command mod
related_commands
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);