Marnen Laibow-Koser wrote: > > BTW, your code is problematic. Two tips: > > * That's a pretty long method. Refactor parts of it into shorter > methods if possible. > > * Never, never use Floats for arithmetic -- they're imprecise. Use > integers or BigDecimal. > hi thanks for your tip i will certainly look into it! I dont think the problem is with the @b or @h because when i output these values within the code it seems to be fine! its quiet confusing.. but yes i will read through the book to make the shorter! -- Posted via http://www.ruby-forum.com/.