2004-05-18 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Tue, 18 May 2004 06:55:42 +0000 (06:55 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Tue, 18 May 2004 06:55:42 +0000 (06:55 -0000)
commite57e711f6408f1e7130c8f624aa4e8d5e7beeeb5
tree5bfdb6c646ee380e358472c3e989cca3064f6023
parentbde80e39815d831d7f5236fe168d153f888d6d0f
2004-05-18  Atsushi Enomoto  <atsushi@ximian.com>

* SqlDecimal.cs :
  - .ctor(double) initializes the precision as 17. If not sufficient,
    it calls AdjustScale(), and if too much then it calls Round().
  - Data should not return the internal array otherwise it might be
    modified by outer code.
  - Reimplemented AdjustScale() to work fine.
  - Reimplemented Parse(). It should rather use Decimal.Parse()
    rather than SqlDouble.Parse() for parsable value range difference.
  - Reimplemented Round(). Don't use double.
  - Fixed ToString() to return "Null" for null value.
  - Fixed explicit let operator to use double .ctor, not decimal
    .ctor() so that precision can be handled in the same way as double.

svn path=/trunk/mcs/; revision=27568
mcs/class/System.Data/System.Data.SqlTypes/ChangeLog
mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs