[OASIS Issue Tracker] (ODATA-771) Exponential notation for Edm.Decimal values in JSON payloads

From
OASIS Issues Tracker <>
Date
2015-03-25T10:48:24+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-771) Exponential notation for Edm.Decimal values in JSON payloads
[ https://issues.oasis-open.org/browse/ODATA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59259#comment-59259 ] 

Ralf Handl commented on ODATA-771:
----------------------------------

Edm.Decimal with numeric Precision and Scale was clearly inspired by the NUMBER/DECIMAL types offered by SQL databases.
The intention of adding Scale="variable" in V4 was to include decimal floating-point numbers as well.

> Exponential notation for Edm.Decimal values in JSON payloads
> ------------------------------------------------------------
>
>                 Key: ODATA-771
>                 URL: https://issues.oasis-open.org/browse/ODATA-771
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Sub-task
>          Components: OData JSON Format
>    Affects Versions: V4.0_ERRATA02
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>             Fix For: V4.0_ERRATA03
>
>
> IEEE754 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.
> The correct, lossless representation of DECFLOAT values is an Edm.Decimal with unspecified precision and variable scale.
> The OData JSON Format represents Edm.Decimal values as JSON numbers, and JSON numbers allow exponential notation, so 
> "VeryLittle":1.4e-6143
> should be valid in JSON payloads.



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