Join Slack
Powered by
quick question. how do I display a string field a...
# suitescript
p
Phillip
12/07/2020, 9:33 PM
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
creece
12/07/2020, 9:35 PM
could try parseInt(2.0)
p
Phillip
12/07/2020, 9:39 PM
I have tried both and the field still displays 2.0
s
stalbert
12/07/2020, 10:44 PM
Math.round(x)
m
Matt Wise
12/08/2020, 6:39 PM
parseInt(va).toFixed(0);
Open in Slack
Previous
Next