g.js
— graphical objects for JavaScript
Home
Get Started
Reference
About
Get started
Installation
Quick Start
Guides
Vector Graphics
Imaging
Geometry
Color
Lists
Math
Data
String
Animation
abs
Convert any number to a positive value (the absolute value).
g.abs(-42);
Parameters
v
: The input number.
Related Guides
Math