The thing is that float and double will never really only be two decimals, it all depends on the precision of the operating system.

However if you wish to print the float/double value with only...