Math.abs(value) Last updated: 09. Jan 2023

Turns any number into a positive number. If positive no change, if negative the value is multiplied by -1.

Parameters

Name Type Description
value number Value to make positive.

Returns

A positive number

Example