OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: [OASIS Issue Tracker] Commented: (ODATA-76) Edm.Decimal is a floating-point type

    [ http://tools.oasis-open.org/issues/browse/ODATA-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32457#action_32457 ] 

Ralf Handl commented on ODATA-76:

I understood Evan's comment cautioning against introducing a DECFLOAT equivalent, which is not widely used.

OData's Edm.Decimal can be represented as BigDecimal in Java, NSDecimalNumber in Objective-C, and decimal in C#. 

All of these are variable-scale, so introducing the VariableScale facet is no burden for these platforms.

And all monetary amounts in SAP Business Suite are fixed-precision and variable-scale, so if we limit Edm.Decimal to fixed-scale, we'd have to use Edm.Decimal with artificially large Precision and Scale values and tell clients via an annotation that "by the way, only half of the digits are actually used".

> Edm.Decimal is a floating-point type
> ------------------------------------
>                 Key: ODATA-76
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-76
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData CSDL v1.0
>    Affects Versions: WD01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>            Assignee: Michael Pizzo
>            Priority: Minor
>             Fix For: WD01
> The definition of the Scale facet as the maximum number of digits right of the decimal point implies that there may be less digits to the right and consequently more digits to the left of the decimal point (up to the value of the Precision facet), so the decimal point is allowed to float within the given Precision.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]