Fixed bug in printing floating point numbers

Floating point numbers could not be printed due to the coordinate of
where text was printed not being updated.