Re: formatting floating point problem

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 05/10/2010 12:19 AM, Erwin Kalvelagen wrote:

> I am wondering what I am doing wrong here.
> 
> erwin@erwin-laptop:~/jtest$ cat tst.java
> public class tst {
> 
> 	public static void main(String[] args) {
> 		double d = 0.8;
> 		System.out.format("[%g]%n",d);
> 	}
> }
> erwin@erwin-laptop:~/jtest$ gcj --main=tst tst.java
> erwin@erwin-laptop:~/jtest$ ./a.out
> []

Sorry, it looks like code to do that was never contributed to GNU Classpath.
Patches welcome.

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.