I noticed at one point that the HTML e-mails I received in Outlook looked like crap. It seemed that a new version of Outlook reverted to a crappier rendering engine. Lo and behold, it was so: Microsoft Breaks HTML Email Rendering in Outlook 2007. Starting with Outlook 2007, Word is used to render HTML instead […]
Monthly Archives: September 2009
Double.equals pitfalls
Posted September 11, 2009 – 12:12 pmIt turns out that Double.equals is not always the same as == with two double primitives. Case in point: double a = Double.NaN; System.out.println(a == a); Double b = new Double(a); System.out.println(b.equals(b)); This code will print out false and true. What’s going on? Basically, if you look at the Javadoc for the equals method, it […]