var discount = 25.1;
var option = {
style: 'percent',
maximumFractionDigits: 2
};
var formatter = new Intl.NumberFormat(locale, option);
var discountFormat = formatter.format(discount );
// discountFormat return -> 2.510%
While I want you to come back like this: 25.10%