CORBA 2.4 NO IDEA Avatar
  1. OMG Issue

CORBA24 — Incorrect use of negative fixed scale

  • Key: CORBA24-87
  • Legacy Issue Number: 3581
  • Status: closed  
  • Source: Cisco Systems ( Paul Kyzivat)
  • Summary:

    In section 3.9.2 (of ptc/99-12-07) on semantics of constants,
    an example is given showing 3000.00D being of type fixed<1,-3>.
    This is inconsistent with statements elsewhere that fixed scale is a
    non-negative quantity.

    Also, the preceding explanation states: "... leading and trailing zeros are
    factored out, INCLUDING NON-SIGNIFICANT ZEROS BEFORE THE DECIMAL POINT."
    This rule of course leads to negative scale factors, so it must also be
    incorrect.

    Suggested Revision:

    Change the following text:

    "A fixed-point literal has the apparent number of total and fractional
    digits, except leading and trailing zeros are factored out, including
    non-significant zeros before the decimal point. For example, 0123.450d is
    considered to be fixed<5,2> and 3000.00d is fixed<3,-1>."

    to:

    "A fixed-point literal has the apparent number of total and fractional
    digits, except leading zeros before the decimal point and trailing zeros
    after the decimal point are factored out. For example, 0123.450d is
    considered to be fixed<5,2> and 3000.00d is fixed<4,0>."

  • Reported: CORBA 2.3.1 — Tue, 25 Apr 2000 04:00 GMT
  • Disposition: Resolved — CORBA 2.4
  • Disposition Summary:

    Remove the specification for stripping leading and trailing zeros, and fix the examples accordingly

  • Updated: Fri, 6 Mar 2015 20:58 GMT