Need help. Where is the Power function in Delphi 1???
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)
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)
: 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?
: 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?
: : 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
: : 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
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! >
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! >
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.
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.
: 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
: 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