Application Development and Automation 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: 
Read only

Script

Former Member
0 Likes
580

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
Read only

bpawanchand
Active Contributor
0 Likes
551

Hi

You Can use

&symbol(.N)&

Ex: &symbol(.2)&

regards

Pavan

5 REPLIES 5
Read only

bpawanchand
Active Contributor
0 Likes
552

Hi

You Can use

&symbol(.N)&

Ex: &symbol(.2)&

regards

Pavan

Read only

Former Member
0 Likes
551

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.

Read only

Former Member
Read only

Former Member
0 Likes
551

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

Read only

0 Likes
551

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

rewarded.