| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Feb 17, 2004 11:49 pm Post subject: Anyone know if theres a Multiply Function? |
|
|
I can't seem to find the @Multiply Function, or whatever its name really is, if there is one.
I need to do a Multiplication math, Multiply 1 script times another.
Example:
| Code: |
%%two = 2
%%ten =10
%%multiply_problem @Multiply(%%two,%%ten)
info %%multiply_problem |
info should say "20" |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Feb 17, 2004 11:55 pm Post subject: |
|
|
The function is in the help file. It is @fmul()
_________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue Feb 17, 2004 11:56 pm Post subject: |
|
|
Try:
| Code: | %%two = 2
%%ten = 10
%%multiply_problem = @prod(%%two,%%ten)
info %%multiply_problem |
("prod" = product)
For floating point multiplications, use @fmul().
| Code: |
Operation Sign Integer Floating point
Product (*) @prod() @fmul()
Division (/) @div() @fdiv()
Sum (+) @sum() @fadd()
Difference (-) @diff() @fsub()
|
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Feb 18, 2004 12:12 am Post subject: |
|
|
Thanks Tommy, @prod is what I needed.
I'll need the Floating as well some day.
I been doing it the hard way all this time, lol |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Feb 18, 2004 12:41 pm Post subject: |
|
|
Go for it. That would be very usefull.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Feb 18, 2004 1:20 pm Post subject: |
|
|
I would say all. That would be very great!
| Code: |
%t = @math(20+45-[3*2]/15)
|
Something like above would be nice. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Feb 18, 2004 3:38 pm Post subject: |
|
|
I agree.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Feb 18, 2004 4:52 pm Post subject: |
|
|
Great!!! Looking forward to it! _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed Feb 18, 2004 5:18 pm Post subject: |
|
|
I vote for that also!  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
|
| Back to top |
|
 |
|