convert number to decimal in react typescript

Solutions on MaxInterview for convert number to decimal in react typescript by the best coders in the world

showing results for - "convert number to decimal in react typescript"
Nohlan
20 May 2018
1
2  function formatPrice(Symbol: any) {
3    return function (value: any) {
4      const price = (value / 100);
5      return `${Symbol}${price}`;
6    };
7  }
8
9  const PriceLabel = formatPrice('£');
10  console.log(PriceLabel(2499))