From 91c38b4bfda60278924140e7bded63f56903a15e Mon Sep 17 00:00:00 2001 From: Infiltrator Date: Thu, 3 Dec 2015 03:56:37 +1100 Subject: [PATCH] fix issue 9717 - `std.math.round` rounds away from zero instead of to the nearest even integer --- std/math.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/math.d b/std/math.d index 411a21665c8..1a1be056d28 100644 --- a/std/math.d +++ b/std/math.d @@ -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 {