10/10/2018, 09:36
hỏi hàm làm tròn số trong asp
chào các bạn!
mình mới học asp, nay mình muốn viết hàm làm tròn số trong asp viết bằng javascript, phải viết thế nào?
bạn nào biết, xin giúp mình với.
cám ơn!
mình mới học asp, nay mình muốn viết hàm làm tròn số trong asp viết bằng javascript, phải viết thế nào?
bạn nào biết, xin giúp mình với.
cám ơn!
Bài liên quan
Ngoài ra còn hàm làm tròn viết bằng bút bi nữa. Bạn nào biết chỉ dùm
Tương tự trong excel cũng có hàm này vì nó dùng NN vba
Add the following code to the head of your HTML page. Make sure you match the NumberField variable to the form, and set the number of decimal places (if you want something other than 2 decimals).
Use the following code for your text field and button:
Add the following code to the head of your HTML page. Make sure you match the NumberField variable to the form, and set the number of decimal places (if you want something other than 2 decimals).
Use the following code for your text field and button:
Mình muốn làm tròn:
7.8799999999999955 -> 7.88
Mong các bạn giúp đỡ
[=========> Bổ sung bài viết <=========]
Mình đã tìm ra hàm làm tròn số rồi.
System.Math.Round(7.8799999999999955, 2);
Kết quả -> 7.88