Javascript float issue (round() will not work)

function round(value, decimals) {
	return Number(Math.round(value+'e'+decimals)+'e-'+decimals);
}