> 1.22460635382238e-16 --WRONG! Thats just another way of writing: 0.000000000000000122460635382238 Which you can consider as 0 +- error Floating point numbers are not exact, the value of pi is not exact either, and I guess that between them they are giving you errors. Thanks Neil