Author Topic: A "Multiply" Function?  (Read 1194 times)

0 Members and 4 Guests are viewing this topic.

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
A "Multiply" Function?
« on: May 14, 2010, 07:48:42 pm »
I want to know if there is any "Multiply" function, that would multiply X times a integer.

Like..

Code: (pascal) [Select]
Var S: Integer;

Begin
 S := 1;
  Multiply(S,6); //S = 6;
 S := 10;
  Multiply(S,10); //S = 100;
end;

//See what I mean?
//Can someone pleaaaase help me? :D
www.soldatx.com.br - The brazilian Soldat community.

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: A "Multiply" Function?
« Reply #1 on: May 14, 2010, 07:50:47 pm »
. . . . . . .

*

5 * 3 = 15


Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: A "Multiply" Function?
« Reply #2 on: May 14, 2010, 07:54:15 pm »
. . . . . . .

*

5 * 3 = 15

Wow. I didn't know that. LMFAO.

Thanks Hack :)

BTW, please erase this topic. It ashames me. Rofl.
www.soldatx.com.br - The brazilian Soldat community.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: A "Multiply" Function?
« Reply #3 on: May 15, 2010, 03:48:57 am »
Code: [Select]
function Multiply(A,B: integer): integer;
begin
  Result:= A*B;
end;

DarkCrusade

  • Guest
Re: A "Multiply" Function?
« Reply #4 on: May 15, 2010, 03:57:46 am »
Why would you want something like that? It's so simple it's not worth using 4 lines instead of 1.

Please sticky this thread :)

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: A "Multiply" Function?
« Reply #5 on: May 15, 2010, 04:54:56 am »
Why would you want something like that? It's so simple it's not worth using 4 lines instead of 1.

Please sticky this thread :)

I agree with DC. Except for the Thread-Stick thing. :P
www.soldatx.com.br - The brazilian Soldat community.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: A "Multiply" Function?
« Reply #6 on: May 15, 2010, 11:20:43 am »
I actually had a use of use for a function very similar to this before to be honest. Something related to CrossFunc and a dynamic something or other; I forget exactly what. Hehe are the fail though. At first I thought you were being sarcastic on your second post.

Good luck with whatever your working, you'll need it.

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: A "Multiply" Function?
« Reply #7 on: May 15, 2010, 11:31:59 am »
[...]
At first I thought you were being sarcastic on your second post.

Good luck with whatever your working, you'll need it.

Haha, when I'm sarcastic, you will know. :P

As a matter of fact, I didn't know the "*" stuff. :P

Thanks :D
www.soldatx.com.br - The brazilian Soldat community.