Number.abs MethodReturns the absolute value of the number.object.abs() Arguments
Return ValueThe Number.abs() method returns the absolute value of the number.RemarksThe following example illustrates the use of the Number.abs method.Console.Writeln((-45.2).abs()); // Outputs 45.2 to the Console. Requirements |