[Nestedvm] Possible to pass floats in call in NestedVM?

David Ehrmann ehrmann at gmail.com
Mon Mar 18 17:19:36 EDT 2013


On Mon, Mar 18, 2013 at 1:04 PM, skinhat skinhat <skinhat at hotmail.com>wrote:

> I have tried converting the float into raw int bits:
> ia[i]=Float.floatToRawIntBits(f);
>
> in runtime.java but just comes out to a huge integer.
>

 That's probably correct. Floats are stored very differently than ints, and
the int version of a float will always look nothing like the float. The
only exception I can think of is positive zero looking like an int zero.
Negative zero looks completely different.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.hcoop.net/pipermail/nestedvm/attachments/20130318/96ccb799/attachment.htm 


More information about the Nestedvm mailing list