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

React - Remove decimal points with parseInt

0 votes
added Jun 11 in React by lcjr Second Warrant Officer (3,180 points)
const listingPsf = get(data, 'field_prop_built_up_price_pu_d', '-');

// To use
{listingBuiltUp} sqft · RM {`${parseInt(listingPsf, 10)}`} psf


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.