Re: did the multiplication rules change!?




"shakah" <shakahshakah@xxxxxxxxx> wrote in message
news:1136913183.093975.169510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> mark.olive...@xxxxxxxxx wrote:
>> Thanks! That seems to do the trick. So, basically, those numbers are
>> being multiplied as ints (as opposed to the longs I was expecting)? I
>> assume the Ls tell the JVM to treat them as longs... is that accurate?
>>
>> Thanks again for the help.
>
> You have it right as far as I'm concerned ("bare" numbers are indeed
> ints), though I'm sure some Usenet/Java zealot will seize this
> opportunity to explain why this simplistic view isn't correct.

He'd have to be a zealot/fruitcake, because that's 100% correct.


.



Relevant Pages

  • Re: did the multiplication rules change!?
    ... That seems to do the trick. ... being multiplied as ints (as opposed to the longs I was expecting)? ... assume the Ls tell the JVM to treat them as longs... ...
    (comp.lang.java.programmer)
  • Re: did the multiplication rules change!?
    ... That seems to do the trick. ... >> being multiplied as ints? ... >> assume the Ls tell the JVM to treat them as longs... ... though I'm sure some Usenet/Java zealot will seize this ...
    (comp.lang.java.programmer)
  • Re: Integer / Long comparison
    ... Mike Schilling wrote: ... unit test should check that it is in range, ... I'm also wondering why Longs and Integers insread of longs and ints. ...
    (comp.lang.java.programmer)
  • Re: What is this?
    ... Hence everything is 4-bytes: chars, ints, longs, floats... ...
    (comp.lang.c)
  • Re: Integer / Long comparison
    ... Arne Vajhøj wrote: ... unit test should check that it is in range, ... I'm also wondering why Longs and Integers insread of longs and ints. ...
    (comp.lang.java.programmer)