Re: rounding a number in a query
From: Saskatoon (anonymous_at_discussions.microsoft.com)
Date: 04/30/04
- Next message: Greg: "logic and <"
- Previous message: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- In reply to: Sam D: "Re: rounding a number in a query"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 20:10:10 -0700
This seems to work anything that ends in a 2 goes down and
everything else goes up to 5, 6 goes down and the rest
round to 10. We are using varying rate increases, right
now it is 2% but will change as time goes on.
Thanks so much
Saskatoon
>-----Original Message-----
>I think something like....
>
>INT(curRent * sngRentalIncrease /5 +0.5) * 5
>
>(Assuming sngRentalIncrease holds say 1.04 for a 4%
increase)
>
>HTH
>Sam
>
>"Saskatoon" <nojunkreturns@hotmail.com> wrote in message
>news:627a01c42e36$711db320$a601280a@phx.gbl...
>> I need to round a rent increase up or down to the
nearest
>> $5. I want to do this with a calculation in a query.
>> I have curRent field (formatted as Currency) and
>> sngRentalIncrease field (formatted as Percent). When I
>> multiply these 2 together they have to round up or down
to
>> the nearest $5.
>> Thanks in Advance.
>
>
>.
>
- Next message: Greg: "logic and <"
- Previous message: Van T. Dinh: "Re: Help with code to run query and test a field in the record"
- In reply to: Sam D: "Re: rounding a number in a query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|