Formating numeric fields
I want the data that is stored in my database as float type to show as a float in the label that's mapped to it. Is this possible?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I want the data that is stored in my database as float type to show as a float in the label that's mapped to it. Is this possible?
Sorry I sorted it.
var tprice = value.parseFloat();
return tprice;
in the mapping:)
Just an update anyone know why toFixed wont add trailing zeros?
so numbers show as 365.50 and not just 365.5
Hi Tony -
You can pass the number of digits to appear after the decimal point into this method: code.toFixed([digits])/code
More info you can find here: https://developer.mozilla.org/en-US/d...
Yeah I know but this doesn't work...
var tprice = value.parseFloat().toFixed(2);
return tprice;
is it the parseFloat?
Yep; it was the parseFloat:)