Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-05

power?

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

spir ☣

Hello,

    // a & b are ints
    n := a ** b;	// error: operator is not overloaded
    n := power(a,b);	// error: identifier not found "power"

Conversion to real does not help. How can I do?

Denis
________________________________

vit esse estrany ☣

spir.wikidot.com

Reply by email

spir ☣

PS: is there a round(fractional_size) function? that's the reason why i needed power.

Denis
________________________________

vit esse estrany ☣

spir.wikidot.com

Reply by email

Burkhard Carstens
to spir ☣
spir ☣ wrote 15 lines
On Sun, 30 May 2010 18:28:47 +0200 Reimar Grabowski wrote: > On Sun, 30 May 2010 15:03:03 +0200 > > spir ☣ wrote: > > PS: is there a round(fractional_size) function? that's the reason > > why i needed power. > > http://community.freepascal.org:10000/docs-html/rtl/system/round > > R. Sorry, maybe was not clear enough, I meant with a fractional_size argument.

see unit math .. "function RoundTo" (IIRC)

regards
Burkhard

Reply by email