From: Tony Dermont Date: 2008-07-03T01:53:22+09:00 Subject: Re: Ruby Exponents Thanks for all the replies. I just can't figure it out. I placed the same set code in just a ruby file and it runs fine, but when I have it inside a rails model it crashed with this crash message on my browser. If I put in an integer value for the exponent, it does not crash. app/models/trade.rb:137:in `**' app/models/trade.rb:137:in `calculate_cagr' app/views/adminportfolio/ajax_disport.rhtml:96:in `_run_erb_47app47views47adminportfolio47ajax_disport46rhtml' app/views/adminportfolio/ajax_disport.rhtml:69:in `each' app/views/adminportfolio/ajax_disport.rhtml:69:in `_run_erb_47app47views47adminportfolio47ajax_disport46rhtml' app/views/adminportfolio/ajax_disport.rhtml:67:in `_run_erb_47app47views47adminportfolio47ajax_disport46rhtml' This might be a rails issue, but if anyone can help me out I'd truly truly appreciate it. Tony -- Posted via http://www.ruby-forum.com/.