1.

How Will You Get The Absolute Value Of The Given Number In Vbscript?

Answer»

Using Abs function, which returns the absolute value of the GIVEN number.

EXAMPLE:

DIM num : num = -645.998651
document.write("Abs RESULT of num is : " & Abs(num))& "<br/>" '645.998651

Using Abs function, which returns the absolute value of the given number.

Example:

Dim num : num = -645.998651
document.write("Abs Result of num is : " & Abs(num))& "<br/>" '645.998651



Discussion

No Comment Found