IR Framework

Number.abs Method

Returns the absolute value of the number.
object.abs()

Arguments

object
Required. Always the name of a Number object.



Return Value

The Number.abs() method returns the absolute value of the number.


Remarks

The following example illustrates the use of the Number.abs method.

Console.Writeln((-45.2).abs());		//	Outputs 45.2 to the Console.


Requirements