The Dink Network

Need help. Where is the Power function in Delphi 1???

November 18th 2002, 10:56 AM
pillbug.gif
IvanMZ
Peasant They/Them
 
For example:

3^3=9.

I cant do this. The Power function is missing or

not exists. If you know assembler, please

tell me how to do this.

(I know nothing about assembler, but can use it)
November 18th 2002, 11:33 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
: For example:

: 3^3=9.

: I cant do this. The Power function is missing or

: not exists. If you know assembler, please

: tell me how to do this.

: (I know nothing about assembler, but can use it)

Sorry, but what has this to do with Dink?
November 18th 2002, 11:45 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
: : For example:

: : 3^3=9.

: : I cant do this. The Power function is missing or

: : not exists. If you know assembler, please

: : tell me how to do this.

: : (I know nothing about assembler, but can use it)

: Sorry, but what has this to do with Dink?

Well, IvanMZ is the one who released DinkersPal so perhaps we can expect another version or some other Dev Utility...

And now we're talking about 3^3, shouldn't that be 27, instead of 9?

3*3 = 9

3^3 = 3*3*3 = 27
November 18th 2002, 07:02 PM
pillbug.gif
IvanMZ
Peasant They/Them
 
Yes, it is 27. I was too angry about this thing,

I emailed Borland for the big mistake.

They included others functions like logarithms,

but not this basic one.

And yes, it is for DinkersPal, I am planning

to include Gamma Correction, a well know problem

with monitor these days (specially with mine).

Well, i think i will put constants insteads of

operations and variables.

Now i need a calculator! >
November 19th 2002, 02:37 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
it is easy to make yer own power function, like:

procedure superpower (base,exponent : integer;

power : real) ;

begin

power := 1;

repeat

power := power * base;

exponent := exponent - 1;

until exponent = 0;

end;

i think this is right... have not scripted in pascal since april or so but i tried.
November 19th 2002, 02:57 AM
stonegiant.gif
: it is easy to make yer own power function, like:

: procedure superpower (base,exponent : integer;

: power : real) ;

: begin

: power := 1;

: repeat

: power := power * base;

: exponent := exponent - 1;

: until exponent = 0;

: end;

: i think this is right... have not scripted in pascal since april or so but i tried.

*tullisti has a heart attack at seeing pascal/delphi code again*

*grin* it's a pet hate, mainly because high schools insist on teaching it, when there are HEAPS of other languages out there which would teach better coding structure, object orientation, and would enerally work better
November 19th 2002, 06:46 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
Mine only taught VB, C++, and Java...

--WC