I am trying to print a decimal number however when printing the trailing zeros are always removed.
e.g. If I input the number 100 I would like it to print 100.00 If I input the number 12.506 I would like it to print 12.50
For this program I was limited to the iostream and fstream libraries. I tried using precision but it removes the trailing zeros.