![]() |
|
|
JavaScript Arithmetic Problem |
|
Average Talker
Posts: 19
Location: Huddersfield, UK
|
Hi,
My JavaScript knowledge is very poor (I'm a layout artist(!!)) so could someone have a look at this for me and let me know what's going on. http://www.lsi-gifts.co.uk/dev/jscalc/ The first two answer boxes work perfectly. However, I've been playing about with the third answer box and cannot get it to give the correct answer (which is 12.6 with the default values). Can someone take a look at it for me and let me know what's going on. The formula I want to use is as follows: (30f * (b+d) * (a + c)) / 1000 I'm not doing any of the others as the rest of the answers revolve around the same formula so sod that until I get this one right! I look forward to your replies. Cheers, Scott. |
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: JavaScript Arithmetic Problem |
|
Average Talker
Posts: 19
Location: Huddersfield, UK
|
Thank you very much! All sorted now.
|
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |