Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 395 Bytes

File metadata and controls

22 lines (18 loc) · 395 Bytes

Math::Abs

Math::Abs(x): number

Returns the absolute value of a number.

Table 1. Parameters

x

number

Input value.

Return

Absolute value.

println(Math::Abs(12.3)); // Will print "12.300000"
println(Math::Abs(-0.307)); // Will print "0.307000"
println(Math::Abs(-42)); // Will print "42"