[Issue 2973] std.math.pow(int, int), etc.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 21 23:22:11 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2973





--- Comment #5 from ZHOU Zhenyu <rinick at gmail.com>  2009-07-21 23:22:10 PDT ---
(In reply to comment #4)
> What powers are you looking at? For most bases and most
> exponents the result will go off range.

long a = foo();
long b = a * a * a;

I don't want to call foo() again.
So I have to define one more variable just because pow doesn't accept integer.
(In fact, I have a longPow function and I use it from time to time)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list