How to round up?

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!
 
G

Guest

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
 
G

Guest

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
 
J

James A. Fortune

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
News CES 2019 round up 6
section numbering 1
lookup 10
Round to 0.5 2
Rounding up! 2
countif 8

Top