Calculator input change to unrounded result

Having calculator code, when a natural value is inserted user gets relevant currency well,
however when inserted a number such as 8.5 or 4.3 etc...
You get a rounded result. how do I change this and show accurate result
(2 digits after the point) instead where echo shows: