Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I NOT get a number to round

Status
Not open for further replies.

FloridaHawk

Programmer
Jun 20, 2003
19
0
0
US
Using Crystal 8
I would simply like to display 1.27 as 1.2

In Crystal, the decimal is dependent on the round. So if I set the decimal to 1.0 the round goes to this.

I tried set the number to text (totext(1.277,1) but it shows the $ sign - anyways to remove the dollar sign when doing a totext?

Thanks!
 
I'm not familiar with Crystal 8 but if you have the truncate function you could use this; Truncate(MyField,1).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top