Page 1 of 1

numbers returned from database drop ending zero

Posted: Sun Jan 18, 2015 9:36 pm
by Vinny B

Hello

I am return numbers from the database column set to number in dollar amount

for example 50.00

but when i map it to a label it drops the .00 and just shows 50

Can you help me I want it to show the 50.00


numbers returned from database drop ending zero

Posted: Mon Jan 19, 2015 12:08 am
by Vinny B

anybody


numbers returned from database drop ending zero

Posted: Mon Jan 19, 2015 8:46 am
by Illya Stepanov

Hi Vinny -

Use this line of code for your field in a success mapping:
pre
codereturn value.toFixed(2);/code
/pre


numbers returned from database drop ending zero

Posted: Mon Jan 19, 2015 1:22 pm
by Vinny B

worked great
Thank you