Join Slack
Powered by
how do i round a decimal field to two decimal plac...
# suitescript
l
Livio
04/30/2020, 8:12 PM
how do i round a decimal field to two decimal places --- 19.96 instead of 19.95468
b
battk
04/30/2020, 8:15 PM
what rounding rules did you want to use
l
Livio
04/30/2020, 8:17 PM
Simple Math.round function - just something basic so i dont display a hundred digits
b
battk
04/30/2020, 8:18 PM
if you want to display what netsuite would display, use format.format
battk
04/30/2020, 8:19 PM
beware that your question is in danger of being complex, floats have rounding issues
l
Livio
04/30/2020, 8:35 PM
this is a 1,0 script im trying to edit. How would i do this in 1.0?
b
battk
04/30/2020, 8:40 PM
nlapiFormatCurrency
l
Livio
04/30/2020, 9:01 PM
thanks so much
12
Views
Open in Slack
Previous
Next