From 8c43e345ad59cc2515f29421549c1f75b94d547c Mon Sep 17 00:00:00 2001 From: Fardale Date: Fri, 24 Jan 2020 23:01:47 +0100 Subject: [PATCH] doc(CCFloat): document the rounding behavior fixes #237 --- src/core/CCFloat.mli | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/CCFloat.mli b/src/core/CCFloat.mli index 757da1ff..c3b2e532 100644 --- a/src/core/CCFloat.mli +++ b/src/core/CCFloat.mli @@ -74,6 +74,7 @@ val fsign : t -> t val round : t -> t (** [round f] returns the closest integer value, either above or below. + For [n + 0.5], [round] returns [n]. @since 0.20 *) exception TrapNaN of string