Formatting Currency

Hi All,

I’m grabbing some numbers from a database and then working out percentages of them (like this)

{{getquote.data.quotebyid[0].grandtotal.toNumber()*0.3)}}

The problem is that i’m now getting 3-* decimal places showing (eg. $8262.554999999998)

The number that comes out of the database only shows 2 decimal places (which is what I want). I can’t for the life of me work out what I’m doing wrong.

Any guidance would be greatly appreciated :slight_smile:

Thanks again,
Ben

Community Page
Last updated: