[Javascript] Math

Cutter Bl cutterbl at hotmail.com
Thu Aug 16 10:47:39 CDT 2001


I'm terrible at Math as it is, but I still don't understand javascripts math 
operations real well anyway. Any help here is greatly appreciated.

I've got a non-profit who wants to sell Raffle Tickets from their site. I 
have a form text field where the user can enter the Quantity 
(myForm.Quantity). Here's the kicker. The client says $2 a ticket, 3 for $5.

Ok, so 10 tickets is $17. 10 divided by three is 3.33333etc. 3 times 5 is 
15, plus the $2 for the other ticket.

But how do you put this in a script calculation?

Cutter
http://www.falcon-knives.com

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the Javascript mailing list