AnsweredAssumed Answered

manipulating string in record.js

Question asked by Robert Lehner on Sep 3, 2015
Latest reply on Sep 4, 2015 by Robert Lehner
Hi I'm working on sugar-prof-7.6
I've  a custom module with an decimal field.
I read out the field in record.js with 
           var price_eur_c  = this.model.get('price_eur_c');
I get back 1,200.00 
Now I want to do a calculation with this value so I has to remove the comma.
when I try  price_usd_c  = price_usd_c.replace(",","");
I get following error in console.log:
TypeError: price_usd_c.replace is not a function at
Has anyone an idea?