parseDecimal doesnt work anymore?! - Mendix Forum

parseDecimal doesnt work anymore?!

1

Hey there,

 

anyone experiencing, that parseDecimal isn't working anymore. In my experience it never worked acconding to the documentation but now, it's not able to transform my String '294953.07' into a decimal.

 

When I use it in a variable like this parseDecimal('294953.07') it simply results in the error "Not parsable to Decimal". Fun fact: the String I use is a formatDecimal-transformed value.

 

Any thoughts on this?

 

Best, Nils.

Posted
1 comments

Hi Nils,

 

I can see in the documentation for the Decimal functions (https://docs.mendix.com/refguide/parse-and-format-decimal-function-calls/) that the output can be dependant on the users locale. Is it possible that your current users (or default) locale is nl_NL for example and that the function therefore expects a comma instead of a period?

Created