Hey!
In the original post I could read this : "rounded float".
The problem is that sprintf does not really "round" from a mathematical point of view.
You can achieve a quick and dirty rounding simply by using: int($example*100000)/100000
...in your sprintf
It is not strictly a rounding operation from a math point of view but it should do the trick.