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

Next JS - Formatted number

0 votes
17 views
added Mar 5 in React by LC Marshal Captain (20,510 points)
recategorized May 14 by LC Marshal
import { FormattedRelative, FormattedNumber } from 'react-intl';
RM <FormattedNumber value={parseInt(ColumnSideData.result.field_prop_asking_price.und['0'].value, 10)} />
//output RM 590,000

 

1 Response

0 votes
responded May 14 by LC Marshal Captain (20,510 points)
<p className="prop-price-mobile d-md-none">
  RM
  {' '}
  <FormattedNumber value={parseInt(asking_price, 10)} />
</p>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...