Answers for "convert number to decimal in react typescript"

0

convert number to decimal in react typescript

function formatPrice(Symbol: any) {
    return function (value: any) {
      const price = (value / 100);
      return `${Symbol}${price}`;
    };
  }

  const PriceLabel = formatPrice('£');
  console.log(PriceLabel(2499))
Posted by: Guest on October-01-2020

Code answers related to "convert number to decimal in react typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language