Hallo!
Habe ein kleines Script zum Runden (mal gefunden):
function roundit(what,places)
{var xx = what.indexOf('.')
var nullen = '000000000000000'
var yy = parseInt(places) + 1
var zz = '' + nullen.substring(1,yy)
var aa = '.' + zz + '5'
var bb = parseFloat(aa)
if (xx == -1)
{ ganz = what.substring (20,xx)
nkomma = '00'
}
else
{ ganz = what.substring(0,xx)
whatx = parseFloat(what) + bb
what = '' + whatx + nullen
nkomma = '' + what.substring(xx+1,xx + 1 + parseInt(places))
}
theNo = ganz + '.' + nkomma
return(theNo)
}
Vielleicht bringts jemanden weiter.
goetz