js has a calculation method of decimals within 2 digits

Math.round(c*100)/100;  

c is the calculation of one or more values, such as 2.3, 2.3*45, etc.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326888879&siteId=291194637