http://d.puremagic.com/issues/show_bug.cgi?id=3813



--- Comment #19 from Kenji Hara <k.hara...@gmail.com> 2011-09-05 03:11:08 PDT 
---
(In reply to comment #18)
> (In reply to comment #17)
> 
> > This is not good, because from the text you can't tell FP point numbers from
> > integer ones. In a similar situation Python prints this, that I think is a
> > better output:
> > 
> > [1.0, 2.0]
> > [1.0, 2.0]
> 
> Sorry, I meant:
> 
> [1, 2]
> [1.0, 2.0]

If you want that result, following code will work.

writefln("[%(%.1f, %)]", array2);  // prints [1.0, 2.0]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to