decimals

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created a Query and in the price column I mutiplied it by 1.08 which gave
me a decimal along with the number. I want to drop the decimals but not have
it round up or down.
 
That is unclear as to the desired result. Can you post an example or two
with the start value and the desired result?

1.08 * 1 = 1.08 result desired is 108 or 1 or ???
 
Fixed: Fix([Price] * 1.08 )

But if you are dropping the decimals, you are rounding down. Do you actually
want to keep the calculation but just not display the decimals?
 
Yes I want ot keep the calculation and just not show the decimals or keep the
caculation anf make all the decimals .00

Jerry Whittle said:
Fixed: Fix([Price] * 1.08 )

But if you are dropping the decimals, you are rounding down. Do you actually
want to keep the calculation but just not display the decimals?
--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

Sam said:
I created a Query and in the price column I mutiplied it by 1.08 which gave
me a decimal along with the number. I want to drop the decimals but not have
it round up or down.
 
Yes I want ot keep the calculation and just not show the decimals or keep the
caculation anf make all the decimals .00

Those are two quite different and contradictory requirements. You'll
get DIFFERENT RESULTS.

To simply not display the number, use a Format property of "#."; to
truncate the result to discard any fractional portion (e.g. 3.99 ->
3.00) use Fix() as suggested. Of course, 3.99 is not equal to 3.00 so
you'll need to discuss the total sales figures with the nice man from
the state sales tax authority...

John W. Vinson[MVP]
 

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