From: Robert Klemme Date: 2005-09-25T00:41:41+09:00 Subject: Re: cannot convert Float into String Nick wrote: > i am making a pdf file, retrieving an product for the db and print > the price in the pdf > > @product = Product.find(@params["id"]) > > pdf.SetFont('Arial','',10) > pdf.Cell(3,h, "?",0,0) > pdf.Cell(100,h, " " + @product.price , 0,1) pdf.Cell(100,h, @product.price.to_s , 0,1) pdf.Cell(100,h, " %4.1f" % @product.price , 0,1) pdf.Cell(100,h, sprintf(" %4.1f", @product.price) , 0,1) Depending on what you need... robert