when getting a percent value using search.lookupFi...
# suitescript
j
when getting a percent value using search.lookupFields, is there a quick shortcut to get the actual decimal value (e.g. for 25% get .25 instead of ’25%’)?
b
nothing really shorter than doing the parsing yourself
you can use format.parse if you wanted it to work for different user preferences
j
yeah I’m using format.parse. A bit annoying as it’s an extra line of code.
to get something I can use in actual math.