Multiplying and Dividing

Started by CharlieTheChuck, Sat 31/05/2003 07:43:43

Previous topic - Next topic

CharlieTheChuck

Is there any functions to ultiply and divide or do I have to write my own functions to do it

Proskrito

#1
use * and /
if you want (for example) multiply variables 'first' and 'second', and store the result in variable 'third', just write:
third=first*second;
it´s the same for dividing, but with / instead of *.
i´m not sure, but it should be in the manual.

(i think this should be in the begginers technical forum) ;)

Scorpiorus

I had opened the manual and couldn't find anything about *, / operators. Yeah those operators functions are trivial but anyway.... Chris are they missing or maybe I just can't find their description.

-Cheers

CharlieTheChuck

oops i didn't think it would be so easy. sorry.

Pumaman

Hmm you're right, these aren't mentioned anywhere... I could have sworn I put them in the scripting tutorial, but obviously not. I'll update it for the next version.

SMF spam blocked by CleanTalk