Re: need an unsigned int in java, so...



A not-elegant workaround: Most C integers are 32 bits. You can do the
math in a Java long (64 bits) and mask it off. Not pretty, but I've
used the trick before.

.



Relevant Pages

  • Re: need an unsigned int in java, so...
    ... > A not-elegant workaround: Most C integers are 32 bits. ... > math in a Java long and mask it off. ...
    (comp.lang.java.help)
  • Re: Hypothetical: All code in classes but main()
    ... > gain access to member data and potentially become bound to it. ... >> There are advantages to having the static Math class in Java. ... >> Other than the fact that people tend to be sloppy with namespaces. ...
    (comp.lang.cpp)
  • Re: C++, C# or Java.
    ... The operator notation gets more and more appealing the more you chain ... It looks more like math. ... more opaque than postfix when you nest. ... Java is like the Roman ...
    (comp.lang.java.programmer)
  • Re: Bloody Java again
    ... have any trouble with this calculus stuff. ... My experience with discrete math was awful. ... Java who has written a book about Java himself. ... As an example only 1 other of the 4 mature students that were ...
    (comp.lang.functional)
  • Possible IP conflict, bad math, or over thinking. Need clarification.
    ... Here is the math that got me to the point I'm ... Subnet mask /25 in binary. ... Multiply last two octets of the ip address and mask together. ... guide for the network separation ...
    (comp.dcom.sys.cisco)