Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

numbers returned from database drop ending zero

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

numbers returned from database drop ending zero

Hi Vinny -

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

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

numbers returned from database drop ending zero

worked great
Thank you

Return to “Issues”