Hi. When using `'exchangeRate'` in my restlet, it ...
# suitescript
j
Hi. When using
'exchangeRate'
in my restlet, it removes the decimal and makes the calculations way off. Instead of 7,434 I get 7434. Do you have any suggestions?
🥰 1
b
what does the code look like
j
message has been deleted
b
that code looks reasonable
what is the number format of the user running the restlet
j
message has been deleted
b
is there a difference between getValue and getText?
getValue is supposed to return a number for currency fields, and theoretically netsuite knows how to convert between the displayed format and the actual number
you shouldnt have problems with number formats unless you are accidently converting a string to a number
j
GetText results in no value at all. Strange issue.
b
remove the pluses from your logs
that will convert the string to a number, which would result in NaN
j
That solved the problem 👍
b
id expect it to fix your logging problem, I wouldnt expect it to fix problem related to your order amount
j
Thats true. But now everything seems to work. Its like Netsuite is messing with me..