Skip to content
Narta Xaymar Dirks edited this page Oct 27, 2026 · 1 revision

Blitz3DBlitzPlusBlitzBasic

Mod

value Mod divisor

Description

The remainder after dividing the value by the divisor, written between the two numbers. The result has the sign of the value.

Examples

Print 7 Mod 3
Print -7 Mod 3
Print 10 Mod 5
1
-1
0

Related Commands

Log, Log10, Pi, PopCount 〔BlitzLLVM〕

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally