I am looking to make a script that does a calculation for me.
The user is to enter two variables, height (H) and width (W), click "calculate" and the value will appear, hopefully on the same page.
The formula will be (((H*W)+150)*1. 65) (pretty easy)
However, I would like it to round up to the nearest 10th. So if the value comes out to 411 I would like it to display 420. If the solution is 579 it will round up to 580.
Sounds easy but I am not sure where to start.
Any guidance will be appreciated.
Thanks!!!!
The user is to enter two variables, height (H) and width (W), click "calculate" and the value will appear, hopefully on the same page.
The formula will be (((H*W)+150)*1. 65) (pretty easy)
However, I would like it to round up to the nearest 10th. So if the value comes out to 411 I would like it to display 420. If the solution is 579 it will round up to 580.
Sounds easy but I am not sure where to start.
Any guidance will be appreciated.
Thanks!!!!
Comment