From: Charles Hixson Date: 2002-10-29T04:54:25+09:00 Subject: Fixnum assignment undefined??? Is it a bug, or blindness? In the routine: def calcRowSals(init, step) result = Array.new(@colHeads.size - 1, 0) val = (init * 1000).to_i for i in 0..result.size result[i] = (val / 10).to_f / 100. val = (val * @step) #<<== Here is the error val = val.to_i end result end # calcRowSals I get the error message: paySchedHtml.rb:24:in `calcRowSals': undefined method `val=' for 100:Fixnum (NoMethodError) from paySchedHtml.rb:22:in `each' from paySchedHtml.rb:22:in `calcRowSals' from paySchedHtml.rb:204:in `to_html' from paySchedHtml.rb:203:in `each' from paySchedHtml.rb:203:in `to_html' from paySchedHtml.rb:215 I am running ruby173-6.exe (to identify the Pragmatic Programmers installer), also know as ruby 1.7.3 (2002-10-12) [i386-mswin32] The OS is Win98. Does anyone know what I'm doing wrong here? I don't have a clue. -- -- Charles Hixson Gnu software that is free, The best is yet to be.