[Issue 4965] New: Lacking int, uint etc. versions of most std.math functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 1 01:01:40 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4965
Summary: Lacking int, uint etc. versions of most std.math
functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 2010-10-01 01:01:23 PDT ---
I noticed that sqrt(int), sqrt(uint) etc. were added to std.math in DMD 2.049
so that you don't have to cast to float or real to calculate simple things like
sqrt(2).
Is there any reason why integer versions haven't been added for other math
functions, like all the trig functions, the exp/log family etc.? These would be
useful for the very same reason, and inconsistency isn't very good for library
usability.
--
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