Rounding a list of numbers...!

Hi

I've got a bunch of numbers between 0 and 1 and i want to round them (without changing there orders) to 5 numbers which are 0, 0.25, 0.5 , 0.75 and 1

how could i do this?

for example:

round this list of numbers (0.2, 0.45, 0.33, 0 , 0.89, 1, 0.71)

to this: (0.25, 0.5, 0.25, 0, 1, 1, 0.75)

Load Previous Replies
  • up

    Piero

    ..check this... I made recently for my project.

    • up

      FRiou

      Another method :

      • up

        sadegh

        Thanx to everybody...