document.write(Math.abs(3.5) + "
"); document.write(Math.abs(2) + "
"); document.write(Math.abs(-0.5) + "
"); document.write(Math.abs(-4) + "
");