Sorry, but I need a clarification on this.
Spec says ""When
unparsing a binary number (packed decimal or twos-complement) and excess
precision is supplied in the Infoset no rounding occurs. It is a processing
error.""
Technically, precision is the number
of digits, and trailing zeros are significant even after a decimal point.
So is it a processing error if I supply
an infoset decimal value of 123.990 and a BDVP of 2? While
this can be serialized to an integer, the original decimal has excess precision.
Similarly for an infoset decimal value
of 12300.0 and a BDVP of -2. This can be serialized to an
integer, but the original decimal has excess precision.
What this amounts to is whether we give
a processing error a) whenever the infoset supplies excess precision, or
b) only when the excess precision results in a decimal that can't be converted
into an integer.
Regards
Steve Hanson
Architect, IBM
DFDL
Co-Chair, OGF
DFDL Working Group
IBM SWG, Hursley, UK
smh@uk.ibm.com
tel:+44-1962-815848
From:
Steve Hanson/UK/IBM
To:
DFDL-WG <dfdl-wg@ogf.org>
Date:
09/12/2014 17:45
Subject:
Re: Binary decimal
virtual point - unparsing behaviour
DFDL WG agreed that this is a processing
error. http://redmine.ogf.org/issues/249
Regards
Steve Hanson
Architect, IBM
DFDL
Co-Chair, OGF
DFDL Working Group
IBM SWG, Hursley, UK
smh@uk.ibm.com
tel:+44-1962-815848
From:
Steve Hanson/UK/IBM
To:
DFDL-WG <dfdl-wg@ogf.org>
Date:
05/12/2014 11:05
Subject:
Binary decimal
virtual point - unparsing behaviour
I am not finding anywhere in the DFDL
spec that says explicitly what happens during unparsing when a decimal
value is given to the unparser, and its rep is binary, and the BDVP is
not sufficient to remove the decimal point from the value. This is surely
a processing error, because the spec states in section 13.7.1 "When
unparsing a binary number (packed decimal or twos-complement) and excess
precision is supplied in the Infoset no rounding occurs. It is a processing
error."
Regards
Steve Hanson
Architect, IBM
DFDL
Co-Chair, OGF
DFDL Working Group
IBM SWG, Hursley, UK
smh@uk.ibm.com
tel:+44-1962-815848
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU