Skip to content

Commit

Permalink
fix issue 9717 - std.math.round rounds away from zero instead of to…
Browse files Browse the repository at this point in the history
… the nearest even integer
  • Loading branch information
Infiltrator committed Dec 2, 2015
1 parent ef45b5e commit 91c38b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -4158,8 +4158,8 @@ long lrint(real x) @trusted pure nothrow @nogc

/*******************************************
* Return the value of x rounded to the nearest integer.
* If the fractional part of x is exactly 0.5, the return value is rounded to
* the even integer.
* If the fractional part of x is exactly 0.5, the return value is
* rounded away from zero.
*/
real round(real x) @trusted nothrow @nogc
{
Expand Down

0 comments on commit 91c38b4

Please sign in to comment.