WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE
The Abs function returns the absolute value of a specified number.
Its parameter is a number, which describes a numeric expression.
The absolute value of a number is its unsigned magnitude. If the
number parameter contains Null, Null will be returned. If the number
parameter is an uninitialized variable, zero will be returned.
In Abs function Negative numbers become positive, Positive numbers
remain positive.
The Syntax of Abs function :-
Example#1 :-
Code :-
document.write(Abs(1) & "<br />")
document.write(Abs(-1))
Output :-
1
1 |
Example#2 :-
Code :-
document.write(Abs(48.4) & "<br />")
document.write(Abs(-48.4))
Output :-
48.4
48.4 |
Example#3 :-
Code :-
<%
MyNumber = Abs(50.3) '
%>
Output :-
50.3. |
Example#4 :-
Code :-
<%
MyNumber = Abs(-50.3) '
%>
Output :-
50.3. |
Example#5 :-
Code :-
<%
=Abs(-127.89)
%>
Output :-
127.89 |
Example#6 :-
Code :-
<%
=Abs(127.89)
%>
Output :-
127.89
|
|