absolute

Modified on Tue, 22 Aug 2023

Description

Calculate the absolute value of a number

Syntax

absolute(number)

Parameters

Input ParameterTypeDescription
numbernumberThe number for which the absolute value is to be calculated

Return value

Type
number

Sample

ExampleResultDescription
absolute(-5)5Returns the absolute value of the input number

To view all the Math and Number functions, click here.