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
.

Arithmetic Operators

Remember basic arithmetic from school? These work just like those.

 Example   Name   Result 
 a + b   Addition   Sum of a and b. 
 a - b   Subtraction   Difference of a and b. 
 a * b   Multiplication   Product of a and b. 
 a / b   Division   Quotient of a and b. 
  % b   Modulus   Remainder of a divided by b. 
 a ^ b   Power   Raises a to the bth power. 
 -b   Negation   Switches the sign of b. 
 |a|   Modulus squared   Calculates the modulus squares of its operand.