Charles Hixson wrote:
>            result[i]    =       (val / 10).to_f / 100.

No, the error is here =================================^

>            val  =       (val * @step)   #<<== Here is the error

You're calling 100.val=(val*@step)

It says so right there in the code :-)

Decimal points should always be followed by a digit.

-- 
(\[ Kent Dahl ]/)_    _~_    __[ http://www.stud.ntnu.no/~kentda/ ]___/~
 ))\_student_/((  \__d L b__/  NTNU - graduate engineering - 5. year  )
( \__\_?|?_/__/ ) _)Industrial economics and technological management(
 \____/_?_\____/ (____engineering.discipline_=_Computer::Technology___)