ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Datatypes
Constants
Variables
Expressions
Operators
Precedence
Arithmetic Operators
+
-
*
/
%
^
- (neg)
|a|
Assignment Operator
Comparison Operator
Logical Operators
Functions
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Operators - %

Operator :% - modulo operator
Unary / binary: Binary
Prefix / infix: Infix

Input data type

Output data type

int/real/complex real
quaternion unsupported

Notes:


This operator can be applied only to real and int numbers. If used on complex numbers, it will only use the real part of the complex number.

The function is defined as:

x % y = x-trunc((x/y))*y

Examples:


3 % 4 = 3

11%3 = 2