The function s() contains the code
and it is all your fault Petr : http://cvs.moodle.org/moodle/lib/weblib.php?view=diff&r1=1.482&r2=1.483
That screws up in the situation where you do
Actual result: the input contains 0
Expected result: the input contains 0.00.
(Of course, my real code is more complex than that. The call to s() is in html_writer.)
I guess we need to change or remove that if in s().