Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道我们如何使用 flex 为 Math.round 赋值。
代码:
txtTotal.text=(Number(txtRate.text)*Number(txtQuantity.text)).toString();
下面的代码可以帮助你: -
txtTotal.text = Math.round(((Number(txtRate.text)*Number(txtQuantity.text))*100)/100).toString();