3
Answers

Eval method

S

S

12y
1.8k
1
Hi

I have the following method in place:-

Eval("UnitCost", "{0}")

This gets a required value from the UnitCost field in the DB.

However the values are showing as 17.00000 etc.

All I want is either the 17 or the 17.00 to show and not all the trailing zeros.

What amendments do I need to make to Eval("UnitCost", "{0}") in order for this to work?

Thanks!
Answers (3)
0
Ajay Patel

Ajay Patel

NA 142 141.6k 12y
0
Senthilkumar

Senthilkumar

NA 15.2k 2.4m 12y
Thanks for sharing...
0
S

S

NA 381 98.2k 12y
RESOLVED

I used "{0:0.00}" and it works perfect!