[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] Jython -> Java long
From: |
Tuukka Hastrup |
Subject: |
[Gzz] Jython -> Java long |
Date: |
Tue, 29 Apr 2003 22:14:24 +0300 (EEST) |
How to convert a 64 bit Jython integer so that it fits 64 bit Java long,
bitwise identically? I can't figure out.
Seems that numbers larger than 2^31-1 should be converted into negative
numbers, along the lines of
x = -(~x) - 1
Didn't work that way, and none of the others either 8-(
--
-- Trying to catch me? Just follow up my Electric Fingerprints
-- To help you: address@hidden
http://www.iki.fi/Tuukka.Hastrup/
IRCNet: Stugge/tuukkah @#pii,#fenfire,#ynna
Jabber ID: address@hidden, ICQ #11321669
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz] Jython -> Java long,
Tuukka Hastrup <=