g.js — graphical objects for JavaScript

dividedivide

Divide two numbers.

g.divide(15, 3);

Since JavaScript has only one number type, this will always return floating-point values when necessary:

g.divide(1, 3);

See Also

  • mod: Divide two numbers and keep the remainder.
  • multiply: Multiply two numbers.