If you're familiar with C and/or printf, you'd understand the differences between the two. Both should work, but %.2f will be less accurate, so I'd use %.6f.