forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Anyone know if theres a Multiply Function?
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Feb 17, 2004 11:49 pm    Post subject: Anyone know if theres a Multiply Function? Reply with quote

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
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Feb 17, 2004 11:55 pm    Post subject: Reply with quote

The function is in the help file. It is @fmul()

Code:

%t = @fmul(12,23)

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Tue Feb 17, 2004 11:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Feb 18, 2004 12:03 am    Post subject: Reply with quote

Yeah, That too... Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Feb 18, 2004 12:12 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Feb 18, 2004 10:26 am    Post subject: Reply with quote

Maybe it's an idea to create a VDS function (unit?) which can do easy calculating. A function like "@easysum(10+5/100*80)"... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Feb 18, 2004 12:41 pm    Post subject: Reply with quote

Go for it. That would be very usefull. Wink
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Feb 18, 2004 1:08 pm    Post subject: Reply with quote

I'll try today if I can get it to work... Smile Which functions should be in? Only product, division, sum and difference? Or also things between brackets and square root stuff? Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Feb 18, 2004 1:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Feb 18, 2004 3:38 pm    Post subject: Reply with quote

I agree. Very Happy
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Feb 18, 2004 4:50 pm    Post subject: Reply with quote

That should be doable... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Feb 18, 2004 4:52 pm    Post subject: Reply with quote

Great!!! Looking forward to it!
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed Feb 18, 2004 5:18 pm    Post subject: Reply with quote

I vote for that also! Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Feb 18, 2004 6:38 pm    Post subject: Reply with quote

It already can do products and divisions, so it might be done this evening... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Feb 18, 2004 6:43 pm    Post subject: Reply with quote

Cool!
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group