View Single Post
  #2   Report Post  
Troi-Xanh
 
Posts: n/a
Default

The number is "162" and "153" (instead of 160 and 151)

Sorry for the mixed-ups

"Troi-Xanh" wrote:

I try to create formulas to calculate parking meter 'feeding' combination and
get the INTERGER (=int) function problem:

DATA: and FORMULA:
Cell 'B1' is the number of minutes :
45 minutes for a Quarter (A2) =INT(B1/A2)
18 minutes for a Dime (A3) =INT((B1-(B2*A2))/A3)
9 minutes for a Nickel (A4) =INT((B1-((B2*A2)+(B3*A3)))/A4)

With "160 minutes" (@ B1) I get correct calculations for Quarter (3) and
Dime (1) but REZO for Nickel (supposedly= 1). If I remove the =INT in formula
for Nickel, I get the correct answer '1' (but I also get the decimal in other
cases!)

With "151 minutes" (@ B1) I get correct for Quarter (3), but REZO for Dime
(supposedly 1) and ONE for Nickel (supposedly 0). If I remove the 'INT'
formula, I get '0.888889' for Dime AND 2 (TWO) for Nickel!

Is that weird? Any explanation is deeply appreciated.