Home › Forums › General discussion › Decimal separator in currency field (not a comma) › Reply To: Decimal separator in currency field (not a comma)
December 7, 2018 at 08:37
#22991
Hi Alex
Thank you for the function it works.The calculation,rounding off and replace comma works well but i noticed that I’m losing couple cents if I dont round off the value of the item which isn’t rounded off when i get it from look up list, I’m using the function below to get the value(hprice) and try using the toFixed(2) but i get a error. Not sure yet but also working on it.
function convertprice()
{
var hPrice = getFieldValue(“h_price”);
var priceValueFixed = hPrice.toFixed(2);
setFieldValue(“h_price”,priceValueFixed);
}
Regards