sprintf is the function you need. The documentation has lots of examples.
-- Ken
In reply to Re: limiting decimal points by kcott in thread limiting decimal points by Anonymous Monk