This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: formatting floating point problem


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]