Roll-your-owns work. If you want to specify at runtime how many places, then you can modify Scoutt's a little bit. Maybe amount * 10 ^ numberOfDigits and then tweak the loop to add the correct number of trailing zeros.