Link to home
Start Free TrialLog in
Avatar of rm103
rm103Flag for United States of America

asked on

Newbie - need to round field to 2 decimal places

Hello all:

Newbie trying to creating labels and trying to round field to 2 decimals. the below line yields the following result:

Output = this["QTY_TOPICK"].ToString();

When I print the label I get "60.00000". I need to reduce it to "60.00" and am unsure of how code this. I believe this is c#.

When you have a chance please advise.

Thanks,

Rm103
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

try:
Output = this["QTY_TOPICK"].ToString("#,0.00");

Open in new window

Avatar of rm103

ASKER

didn't work. I got the following error:

Cannot convert from 'string' to IE to 'System.IFormatProvider'
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial