From: Gavin Kistner Date: 2011-08-11T23:54:24+09:00 Subject: Re: puts 2 float value at one line --Boundary_(ID_ikebu56sHIRg5ckcQP/b1A) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: quoted-printable On Aug 11, 2011, at 08:42 AM, Filemonster Filemonster wrote:=0AI want to print 2 float values which are separated by a= space at one=0Aline. In addition my float values must be %.1f type.=0A=A0= =0Aputs "%.1f %.1f" % [ foo, bar ]= --Boundary_(ID_ikebu56sHIRg5ckcQP/b1A) Content-type: multipart/related; boundary="Boundary_(ID_wAFu3izR6uMVAhxauTOjCw)"; type="text/html" --Boundary_(ID_wAFu3izR6uMVAhxauTOjCw) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: 7BIT
On Aug 11, 2011, at 08:42 AM, Filemonster Filemonster <fantasyleague0629@gmail.com> wrote:
I want to print 2 float values which are separated by a space at one
line. In addition my float values must be %.1f type.
 
puts "%.1f %.1f" % [ foo, bar ]
--Boundary_(ID_wAFu3izR6uMVAhxauTOjCw)-- --Boundary_(ID_ikebu56sHIRg5ckcQP/b1A)--