packages/i18n-calypso/src/number-format.js
function toFixedFix( n, prec ) {
	const k = Math.pow( 10, prec );
	return '' + ( Math.round( n * k ) / k ).toFixed( prec );
}
function toFixedFix( n, prec ) {
	const k = Math.pow( 10, prec );
	return '' + ( Math.round( n * k ) / k ).toFixed( prec );
}
/*
Exposes number format capability

@copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
@license See CREDITS.md
@see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js