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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 21 01:02:36 PDT 2009


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


ZHOU Zhenyu <rinick at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rinick at gmail.com




--- Comment #1 from ZHOU Zhenyu <rinick at gmail.com>  2009-07-21 01:02:35 PDT ---
(In reply to comment #0)
> std.math should have a function for efficiently and accurately computing
> int^int, int ^ uint, etc.  Casting to floating point is not a good solution b/c
> you lose performance and, in some cases, precision.  Furthermore, this would be
> dead simple to implement.

agree
int^uint and long^uint are useful.

but int^int is not necessary, because:
int a = pow(2,-1); this doesn't make any sense.

-- 
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