I sit and write the condition on Vue.js ... I check the performance and see that the condition '8.000000' < '2134124' (пример) not satisfied '8.000000' < '2134124' (пример) How is this possible? If you remove the quotes, then everything is fine, but the values ​​(numbers) from the server (php) come in the form of a string ... How to be in this case?

    1 answer 1

    Use parseFloat () "pure" Java Script method. It will turn the string into a floating point number.