Page 1 of 1

Displaying only a couple decimal places.

Posted: Thu Dec 20, 2007 10:18 pm
by stuartls
If I have a field that accepts a value. Such as 7.45789 for example. How do I force that field to just display the 7.45?

Thanks!
Stu

Posted: Thu Dec 20, 2007 10:52 pm
by stuartls
Opppppppsssssss... found it myself..

put format("%2.2f", tNumberOfWrong) into field "Percentage"

Posted: Fri Dec 21, 2007 7:49 pm
by BvG
You can use the trunc() function, or the round() function, which are easier to use (but less flexible) then your approach.