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!

Remove Decimal 2

Status
Not open for further replies.

bv0719

MIS
Dec 19, 2002
131
US
Hello...

Have a weight field where the output is (example: 204.34)
Want the output to be 20434. How do I remove the decimal?

Would it be a formula in the format field>customize>decimal separator?

Thanks,
BV
 
totext({@number1}*100,0,"")

_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 
Just for a little more insight into how that works, if you are interested, here is the function format:

totext(variable,x,y)

x = The number of decimal places to carry over when converting to text (1=.0 and 5=.00000)

y = Character to be used to separate tens, hundreds, thousands (like the comma in "1,000")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top