Guest User

Guest User

  • Tech Writer
  • 357
  • 120.5k

Eval method

May 23 2012 3:49 AM
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)