RE: Round to Nearest Integer in Access
- From: "JimH" <JimH@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 13:00:02 -0700
Use the Integer function -
Syntax: INT(number) Rounds a number down to the nearest integer.
Number is the real number you want to round down to an integer.
Example
Data = 19.5
Formula Description (Result)
=INT(8.9) Rounds 8.9 down (8)
=INT(-8.9) Rounds -8.9 down (-9)
=A2-INT(A2) Returns the decimal part of a positive real number in cell A2
(0.5)
"Renee" wrote:
> I need to round numbers in Access to the nearest integer, where I'd round up
> if .5 or greater else round down. For example, need to round 33.5 to 34 and
> 33.2 to 33. I do not want to simply change the properties of the field...I
> want the actual rounded number to populate the cell. Thanks!
>
.
- Follow-Ups:
- Re: Round to Nearest Integer in Access
- From: Alan Armstrong
- Re: Round to Nearest Integer in Access
- References:
- Round to Nearest Integer in Access
- From: Renee
- Round to Nearest Integer in Access
- Prev by Date: Re: joining multiple fields in a query
- Next by Date: Re: Yes/No Field in query
- Previous by thread: RE: Round to Nearest Integer in Access
- Next by thread: Re: Round to Nearest Integer in Access
- Index(es):
Relevant Pages
|