rtatnell
03-24-2003, 03:47 PM
what code do i use to divide one integer by another? If the integers are variables?
|
Click to See Complete Forum and Search --> : simple question rtatnell 03-24-2003, 03:47 PM what code do i use to divide one integer by another? If the integers are variables? rtatnell 03-24-2003, 03:50 PM using vbscript that is Ribeyed 03-24-2003, 05:11 PM hi, <% dim value1, value2, total value1 = 55 value2 = 20 total = value1 / value2 response.write total %> Hope this helps khaki 03-24-2003, 05:13 PM Hi rtatnell... num1 = 50 num2 = 2 num3 = num1 / num2 (num3 equals 25) + adds - subtracts * multiplies / divides Use brackets to indicate order of calculation: num1 + (num2/4) that about covers it, i think... k khaki 03-24-2003, 05:50 PM sorry... I'm a bit weak/lazy with nomenclature. p a r e n t h e s e s ! But forget that... what's up with that fancy little list?! (these moderator types are so strange! lol) doesn't spell correctly, punctuate, or use the proper terms... but does know what divide means (right RibeyedDave? wink)... ;) k jpmoriarty 03-24-2003, 06:06 PM that will be the list button above then khaki 03-24-2003, 06:10 PM [list=1] oh... I had no idea! (you shouldn't have shown me this :eek: ) k [/list=1] jpmoriarty 03-25-2003, 02:53 AM yes it's only above when you start writing your replies :P webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |