diff options
author | Araq <rumpf_a@web.de> | 2012-05-20 10:56:17 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-05-20 10:56:17 +0200 |
commit | 15dd3a225134afab649a3c1994cbd862f1b11439 (patch) | |
tree | ec3d43cd939b7ab91f25c7b5ac57981967dcbf8f /lib | |
parent | e6019b6f98e3e16205f0b9775437352da9324bc6 (diff) | |
download | Nim-15dd3a225134afab649a3c1994cbd862f1b11439.tar.gz |
fixes #109
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/pure/strutils.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index f2c1c100e..aaff0d151 100755 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -947,7 +947,9 @@ proc formatBiggestFloat*(f: BiggestFloat, format: TFloatFormat = ffDefault, ## If ``format == ffScientific`` then precision is the maximum number ## of significant digits to be printed. ## `precision`'s default value is the maximum number of meaningful digits - ## after the decimal point for Nimrod's ``biggestFloat`` type. + ## after the decimal point for Nimrod's ``biggestFloat`` type. + ## + ## If ``precision == 0``, it uses the const floatFormatToChar: array[TFloatFormat, char] = ['g', 'f', 'e'] var frmtstr {.noinit.}: array[0..5, char] |