The ajax request returned a decimal number. The preview tag in the browser debugging tool is like this:
The two decimal places shown above are the same as the database settings, but after consolelog(), there is no decimal point after:
There is no decimal point when displayed in html. How can I prevent it from omitting the decimal point?