Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

converting a value into decimals in smart form.

Former Member
0 Kudos

i have a variable(amt) in a smartform in which i have a value '600000.00' . When i display it, i do like this..

&amt(1.0)& // cuz i want 60,000

but it displays '6' ..

why ? plz help... Thanks !!

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Try

&amt(5.0)&

Regards,

Ravi

4 REPLIES 4

former_member181962
Active Contributor
0 Kudos

Try

&amt(5.0)&

Regards,

Ravi

0 Kudos

hi,

Specify it in this fashion <b>&amt(5.0)&</b>

Regards,

Santosh

Former Member
0 Kudos

hi shehryar,

in place oof &amt(1.0)& place &amt(5.0)&

i think it should workout now

Regards,

Naveen

shiva_suvarna
Participant
0 Kudos

&amt(n)& will tell the number of digits is n.

&amt(.n)& will tell us the number of digits after decimal point.

We can combine both these two like

&amt(n.n)& . So problem solved.