From: thiel Date: 2008-11-04T23:01:00+09:00 Subject: Re: How to print an array with floating point numbers? Hi Shourya, Many thanks for your answer. I solved the problem. The reason was I used a wrong multi dimensional array definition. Best regards, Thiel Sarcar, Shourya C (GE Healthcare) schreef: > >> -----Original Message----- >> From: thiel [mailto:schang@wxs.nl] >> Sent: Tuesday, November 04, 2008 3:43 PM >> To: ruby-talk ML >> Subject: How to print an array with floating point numbers? >> >> Hi, >> >> I tried to print an array with a floating point numbers e.g. x[0,0] > 55.123 with the format: printf("%0.04f\n", x[0,0]) >> >> > > Did you mean: > printf("%0.04f\n",x[0][0]) > > -- > Shourya > > > > > >