diff options
author | def <dennis@felsin9.de> | 2015-01-13 12:34:27 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-02-16 20:44:24 +0100 |
commit | 2d004dd677e3965f60c7a9a4e18ab274ce4c24fc (patch) | |
tree | a78104fda79f5f7e23cb2cd8031403042531f6de /lib/pure | |
parent | 444beab5dd65aee8590c46ad4d3d2389d5791727 (diff) | |
download | Nim-2d004dd677e3965f60c7a9a4e18ab274ce4c24fc.tar.gz |
Update toInt doc
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/rationals.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/rationals.nim b/lib/pure/rationals.nim index eae0bd55b..707510bd9 100644 --- a/lib/pure/rationals.nim +++ b/lib/pure/rationals.nim @@ -26,8 +26,8 @@ proc toFloat*(x: Rational): float = x.num / x.den proc toInt*(x: Rational): int = - ## Convert a rational number `x` to an int. Conversion rounds down if `x` - ## does not contain an integer value. + ## Convert a rational number `x` to an int. Conversion rounds towards 0 if + ## `x` does not contain an integer value. x.num div x.den proc reduce*(x: var Rational) = |