Int (integer function)

  • Thread starter Thread starter alex richardson
  • Start date Start date
A

alex richardson

When I use this function it simply chops off the decimal
positions. Is there a way to get it to round to the
nearest dollar before it truncates the decimals?
 
alex richardson said:
When I use this function it simply chops off the decimal
positions. Is there a way to get it to round to the
nearest dollar before it truncates the decimals?

You want the round function:


Round(expression [,numdecimalplaces])


--
 
Instead of Int(xxx) use Round(xxx,0)

heh. I 'm so old-school that I still catch myself doing Int(x + .5)
--
Peace & happy computing,

Mike Labosh, MCSD

"It's 4:30 am. Do you know where your stack pointer is?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top