How to round up?

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

Guest

Hello!

My task is to round all up:
2.1=3
2.2=3
....
2.9=3
Is it possible to do in a query?
Thank you!
 
That works if the Fieldname has a decimal but does not work for whole numbers.
2.1 will round to 3 but 2.0 will also round to 3
 
You right, thank you for that.
--


Dennis said:
That works if the Fieldname has a decimal but does not work for whole numbers.
2.1 will round to 3 but 2.0 will also round to 3
 
Beatrix said:
Hello!

My task is to round all up:
2.1=3
2.2=3
...
2.9=3
Is it possible to do in a query?
Thank you!

SELECT Int([X]) + Abs([X] <> Int([X])) AS XRoundedUp FROM MyTable;

James A. Fortune
 

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

Similar Threads

Round Up a Decimal 6
Round up 10th of Decimal 1
Bankers Rounding 1
Rounding Problem 1
Rounding up! 2
section numbering 1
News CES 2019 round up 6
lookup 10

Back
Top