support for various angular units in std.math

bearophile bearophileHUGS at lycos.com
Mon Feb 28 11:03:54 PST 2011


Andrei:

> you'd use:
> 
> sin(to!"degrees"(x));
> 
> That way the conversion remains explicit but is hoisted out of the 
> multitude of math functions.

Have you seen Don's answer?
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=130757

Bye,
bearophile


More information about the Digitalmars-d mailing list