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] (ODATA-557) Allow exponential notation for Edm.Decimal


    [ https://issues.oasis-open.org/browse/ODATA-557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63902#comment-63902 ] 

Michael Pizzo commented on ODATA-557:
-------------------------------------

Just to confirm; 

1) Services would only allow scale="Floating" for 4.01 and versions of metadata, 
2) As per OData-771, services should only return values in exponential notation if the ExponentialDecimals format parameter is specified
3) Also, as per OData-771, clients should only supply values in exponential notation if SupportedFormats returns ExponentialDecimals

For 4.01, rather than burdening the media type with additional format parameters, should we just say that 4.01 clients and services have to be prepared to receive decimals in exponential format?  Do we still need the ExponentialDecimals format parameter for 4.0 clients to say they will accept decimals in exponential format, or should we not apply OData-771?

> Allow exponential notation for Edm.Decimal
> ------------------------------------------
>
>                 Key: ODATA-557
>                 URL: https://issues.oasis-open.org/browse/ODATA-557
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData ABNF Construction Rules, OData ATOM Format, OData CSDL, OData JSON Format, OData Protocol, OData URL Conventions
>    Affects Versions: V4.0_CSD03
>         Environment: Proposed
>            Reporter: Ralf Handl
>            Assignee: Ralf Handl
>              Labels: AdoptionBlocker
>             Fix For: V4.01_WD01
>
>
> IEEE754 also defines the DECFLOAT data type for high-precision decimal arithmetic. They have 16 or 34 decimal digit mantissas and exponents between -383 and +384 or -6143 and +6144.
> Representing them exactly in current Edm.Decimal would result in at most 34 non-zero digits and several thousand zeroes. This waste can easily be avoided by allowing exponential notation also for Edm.Decimal.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


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