How to subdivide and multiply numbers?
Syrus_Dante
Posts: 983
It appears to me that just recently I tried to do some math with scripting for the first time and I realized that you can't write just asterisk or slash. I know there must be some method to simply subdivide and multiply numeric values to express equasions but I searched the whole API Reference for way to long and the only ones I found was the higher math methods in the object index like sinus, cosinus and logarithmic.
Can someone please give me a script example with subdivide and multiply?
Comments
* and / do work with Numbers: In the Script IDE Pane:
Are you perhaps trying to multiply or divide DzVec3 Vectors?:
Hope this helps.
P.
Thanks Praxis yeah first I thought the type isn't numeric but I double checked that. It's about simple 2D coordinates but I guess I just can't write it like this:
Now I see there is no variable defined for handing over the resulting value of the multiplication.
[Edit:] Wait now it is working.. was missing parentices again, I should get some sleep.