quick question. how do I display a string field a...
# suitescript
p
quick question. how do I display a string field as an integer? it keeps on displaying 2.0 and I want it to display 2 instead
c
could try parseInt(2.0)
p
I have tried both and the field still displays 2.0
s
Math.round(x)
m
parseInt(va).toFixed(0);