Jump to content



Photo
- - - - -

How Do You Convert A Number To The Nearest Multiples Of 5?


  • Please log in to reply
1 reply to this topic

#1 josephlo

josephlo

    Newbie

  • Members
  • Pip
  • 13 posts

Posted 06 May 2008 - 04:01 PM

Hi

I would like to convert some numbers to the nearest multiples of 5 but could not get things right.

Basically for numbers like 21.2 I want it to be rounded up to 25 and for numbers like say 37, I want it to be rounded to 40.

Appreciate if anyone could give me an insight how to do this.

Thanks
Joseph

#2 SimLo

SimLo

    Casio Addict

  • Members
  • PipPipPip
  • 52 posts
  • Gender:Male
  • Location:Germany

  • Calculators:
    FX-9860G/FX-9860G SD

Posted 07 May 2008 - 03:25 PM

Try

5*Int ((A+5)/5)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users