3
Answers

Eval method

Ask a question
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)