fractionPlaces is the multiplicator. It should not mess up "places" which still is the decimal places to output.
mixing those two in the first place was a bad idea and should be avoided from here on.