You can do it with plain javascript like this: `+percent.toFixed(1)`