Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

React - decimal plugin, accounting with formatMoney function

0 votes
added Apr 21 in React by lcjr Second Warrant Officer (5,360 points)
import accounting from 'accounting';

return (
  <h5 className="listing-price">
    From {accounting.formatMoney(price, 'RM ', 0)}


// output RM 200,000


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.