[phobos] Proposed changes to std.math + introduce std.mathspecial
spir
denis.spir at gmail.com
Wed Nov 17 13:29:29 PST 2010
On Wed, 17 Nov 2010 22:09:10 +0100
Don Clugston <dclugston at googlemail.com> wrote:
> (1) Add two necessary functions to std.math:
>
> // Rounds x to the nearest int or long using the currently selected
> rounding mode
> // (MUCH faster than cast(int)).
> int rndint(real x)
> long rndlong(real x)
Please use full words when abbr is not absolutely obvious and/or the gain in typing is small (esp for rarely used functions). The functions above may return random int and real, respectively. (also sgngamma --> signgamma)
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir.wikidot.com
More information about the phobos
mailing list