From: Jim Burgess Date: 2009-02-12T17:26:39+09:00 Subject: Re: Float in Spreadsheet > Sometimes some things don't get responses, I guess. Sorry. D: No worries, it's just that spent ages writing this app and everything works fine except this one thing, so it would be a shame if I couldn't sort it out. All I want to do is write a decimal to a cell in a spreadsheet generated using the ruby spreadsheet gem. Currently I'm writing: @invoice.row(32+i).push '',i, groups[i-1],'',groups_ue[i-1], 34, tot Instead of 34 I want to write 34.00 However when I write: @invoice.row(32+i).push '',i, groups[i-1],'',groups_ue[i-1], 34.00, tot The program still writes 34 (without the decimal) to the cell. Cheers for your help. -- Posted via http://www.ruby-forum.com/.