how do i round a decimal field to two decimal plac...
# suitescript
l
how do i round a decimal field to two decimal places --- 19.96 instead of 19.95468
b
what rounding rules did you want to use
l
Simple Math.round function - just something basic so i dont display a hundred digits
b
if you want to display what netsuite would display, use format.format
beware that your question is in danger of being complex, floats have rounding issues
l
this is a 1,0 script im trying to edit. How would i do this in 1.0?
b
nlapiFormatCurrency
l
thanks so much