You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/13 18:36:00 UTC

[jira] [Commented] (AVRO-3134) C#: Method ToString of AvroDecimal causes ArgumentOutOfRangeException

    [ https://issues.apache.org/jira/browse/AVRO-3134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414487#comment-17414487 ] 

ASF subversion and git services commented on AVRO-3134:
-------------------------------------------------------

Commit fe40576cd22e93776e7e48302f4d3358b0b4a4e3 in avro's branch refs/heads/master from Thiago Froes
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=fe40576 ]

AVRO-3134: Fix ArgumentOutOfRangeException in method ToString of AvroDecimal

The method ToString of class AvroDecimal causes ArgumentOutOfRangeException
when Scale is greater than Unscaled number size.
The method ToString of class AvroDecimal returns a wrong result when Scale
is equal to the Unscaled number size because is missing a "0"


> C#: Method ToString of AvroDecimal causes ArgumentOutOfRangeException
> ---------------------------------------------------------------------
>
>                 Key: AVRO-3134
>                 URL: https://issues.apache.org/jira/browse/AVRO-3134
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: csharp
>    Affects Versions: 1.10.2
>            Reporter: Thiago Froes
>            Priority: Minor
>
> Method ToString of class AvroDecimal causes ArgumentOutOfRangeException when Scale is greater than Unscaled number size. Samples:
>  * 0.001
>  * 0.01
> When Scale as equal as Unscaled number size, the result é wrong, because is missing a "0", Sample:
>  * 0.1: in this case the result is ".1"
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)