in reply to limiting decimal points

sprintf is the function you need. The documentation has lots of examples.

-- Ken