g.js — graphical objects for JavaScript

absabs

Convert any number to a positive value (the absolute value).

g.abs(-42);

Parameters

  • v: The input number.