🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #20003

Re: Floating point bug in vitrual machine?

#20003
From: Chris Hill
Date: Wed, 12 Nov 1997 00:00
24 lines
858 bytes
In article <3468E535.5AEB@eng.printronix.com>, 
garc_an@eng.printronix.com says...
>
>Try this:
>
>  {
>        Float f = new Float(512.0);
>        int i = f.intValue();
>        System.out.println(i);
>  }
>
>I get 511 every time.  Any ideas why?
>
>P133/Windows NT 4.0 SP 1/Jbuilder Pro
>
>--AG

I can't reproduce here.  I get 512.  P133/Windows NT 4.0 SP 3/Jbuilder 
Pro.

-- 
Chris Hill
hillca@cs.purdue.edu
Technical Details
Message-ID: <64b5vi$rh11@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3468E535.5AEB@eng.printronix.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,70cc12fd65535774
X-Google-Attributes: gidf74b3,public
From: hillca@cs.purdue.edu (Chris Hill)
Subject: Re: Floating point bug in vitrual machine?
Date: 1997/11/12
Message-ID: <64b5vi$rh11@forums.borland.com>
X-Deja-AN: 288796818
References: <3468E535.5AEB@eng.printronix.com>
Organization: None
Newsgroups: borland.public.jbuilder.java.language