comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Differences between IDL's floats and Java's floats - a problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Differences between IDL's floats and Java's floats - a problem [message #36948 is a reply to message #36943] Thu, 13 November 2003 08:42 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Neil Crosby" <necr@pml.ac.uk> wrote in message
news:3eda43e9.0311130409.5ee02334@posting.google.com...
> I am currently porting some IDL code across to java, and I've run into
> a couple of snags with the different ways IDL and Java deal with
> numbers. Most of these I have sorted, with trips to the APIs and a
> fair bit of googling. However, there is one I haven't managed to sort
> out yet.
...
> If I run the float code on these same four bytes though, IDL will give
> me 412.50 (the value I want), while Java will give 5.951465E-39 -
> clearly not the number I'm looking for!
...
> Neil


Hi Neil,
as David said, this looks like a endian problem. Check out
http://www.ibiblio.org/javafaq/books/javaio/ioexamples/07/in dex.html

and there are some classes that deal with little endian inputs.


Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to add a menu item for printing a variable when debugging
Next Topic: IDL crashes

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:18:20 PDT 2025

Total time taken to generate the page: 1.40406 seconds