I need assistance with converting a string to float in Angular. Whenever I use parseFloat, it seems to remove the zeros from the decimal values. How can I ensure that these zeros are retained with the numerical values? The example below should provide more clarity:
For instance, my value is b="12.00" and I am attempting to convert it to a float using the syntax provided below.
abc = parseFloat(b.toFixed(2))
Current Output : 12
Expected Output : 12.00