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: 

Script

Former Member
0 Kudos

Hi,

I'm modifying a script,field in table has got decimals places of 4 and it's displaying the same on output.I want to restrict the no of decimals places to 2.How to do it?

Thanks in advance.

1 ACCEPTED SOLUTION

bpawanchand
Active Contributor
0 Kudos

Hi

You Can use

&symbol(.N)&

Ex: &symbol(.2)&

regards

Pavan

5 REPLIES 5

bpawanchand
Active Contributor
0 Kudos

Hi

You Can use

&symbol(.N)&

Ex: &symbol(.2)&

regards

Pavan

Former Member
0 Kudos

Hi Hosmath,

For this you can use a formatting option called &symbol(.N)& to restrict the decimal places.

Example :

&sflight-price& -> 1,234.560

&sflight-price(.1) -> 1,234.6

&sflight-price&(.4) -> 1,234.5600

&sflight-price&(.0) -> 1,235

Regards,

Swapna.

Former Member

Former Member
0 Kudos

hiii

see following example for decimal in script.

&EKPO-MENGE& -> 1,24.560

&EKPO-MENGE(.1) -> 1,24.6

&EKPO-MENGE&(.4) -> 1,24.5600

regrads

twinkal

0 Kudos

Thanks guys..........

rewarded.