diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2003-06-26 18:15:25 +0400 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2003-06-26 18:15:25 +0400 |
commit | e900dcab23db0cd5a49c94702856a9e0f840f5cc (patch) | |
tree | d37ae4b1f946fdeefb272aab1dd0bd1e9d210b96 | |
parent | 15ed41cd9e4c2afbb9c569cbbe6e3b96b3686802 (diff) |
Thu Jun 26 16:06:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
* FloatingPointFormatter.cs: use dec_len2 as default precision.
svn path=/trunk/mcs/; revision=15655
-rw-r--r-- | mcs/class/corlib/System/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/System/FloatingPointFormatter.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/corlib/System/ChangeLog b/mcs/class/corlib/System/ChangeLog index c366590b7cf..87d3bb98c84 100644 --- a/mcs/class/corlib/System/ChangeLog +++ b/mcs/class/corlib/System/ChangeLog @@ -1,3 +1,8 @@ + +Thu Jun 26 16:06:35 CEST 2003 Paolo Molaro <lupus@ximian.com> + + * FloatingPointFormatter.cs: use dec_len2 as default precision. + 2003-06-26 Lluis Sanchez Gual <lluis@ximian.com> * Object.cs: Object must have the Serializable attribute. diff --git a/mcs/class/corlib/System/FloatingPointFormatter.cs b/mcs/class/corlib/System/FloatingPointFormatter.cs index 27c55b44219..f93559186ea 100644 --- a/mcs/class/corlib/System/FloatingPointFormatter.cs +++ b/mcs/class/corlib/System/FloatingPointFormatter.cs @@ -127,7 +127,7 @@ namespace System { private bool ParseFormat (out char specifier, out int precision) { specifier = '\0'; - precision = dec_len; + precision = dec_len2; // FIXME: Math.Round is used and the max is 15. if (precision > 15) precision = 15; |