On Dec 7, 12:49 am, Reinier Zwitserloot <[email protected]> wrote:
> Weird, huh? Yeah. Have a look at this snippet (or better yet, try it
> out!):

mmm.  I understand your point but I'd still be very wary about
converting primitives between integer and decimal types?  It sort of
appears to work...almost.  For example:

        final long l = Long.MAX_VALUE;
        final float f = l;
        System.out.println("l="+l);
        System.out.println("f="+f);
        System.out.println("f="+new DecimalFormat("0").format(f));
        System.out.println("l="+(long)f);

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to