How do I NOT remove trailing zeroes from a number in typescript?
For example, fees: number = 10.20; //this displays 10.2 on UI but I want to display 10.20
I have tried .toFixed() and .toPrecision() but it quite didn’t work.
>Solution :
const fees: number = 10.20;
console.log(fees.toFixed(2));
let s2: string = fees.toFixed(2);
console.log(s2);