DIVV is a CAOS command for arithmetic.


Syntax: DIVV var (variable) x (int or float)

Divides var by x, so var = var / x.

If both var and x are integers, integer division is used. This takes the floor, so 17 / 9 = 1. If either argument is a float, floating point division is used, and var will be a float after the operation. If you need to perform floating point division with two integer variables, consider ITOF.


This is equivalent to MODV va00 va01, where va00 and va01 are both integer.

SETV va02 va00
DIVV va02 va01
MULV va02 va01
SUBV va00 va02

See also

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.