recently, using vue, to display data requires saving unified two decimal places, such as 1.11, but if you save 1.00, the Console.log will directly be 1 instead of 1.00. How to solve this problem
data () {
return {
number1: 1.00,
number2: 1.12
}
}
because to sort these of numeric types, calculate averages and so on, you need numeric types