Forms and Math page 2 at Dreamweaver FAQ.com
Our web spider found the following code snippet at www_dwfaq_com and contains information about abs and JavaScript.
abs(argument)"  

method, which will return the positive portion of number. Math.abs(-3.14)  
returns 3.14. 
val=""+Math.round(100*Math.abs(val)); 
<script language="JavaScript">
<!--
function to_currency(val,currency){
if(!val) {
alert("Please provide a value");
return;
if(isNaN(val)){
alert(val+" is an invalid input");
return;
val=""+Math.round(100*Math.abs(val));
while (val.length <= 2) {
val="0"+val
var dec_point=val.length-2;
var first_part=val.substring(0,dec_point);
var second_part=val.substring(dec_point,val.length);
var result=first_part+"."+second_part;
if(!currency){
Read the entire article....