CORBA 2.3 NO IDEA Avatar
  1. OMG Issue

CORBA23 — Fixed point constants issue

  • Key: CORBA23-174
  • Legacy Issue Number: 1068
  • Status: closed  
  • Source: Anonymous
  • Summary:

    Summary: Page 3-20 of CORBA 2.2:

    A fixed-point literal has the apparent number of total and
    fractional digits, except that leading an 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.00 is fixed<1,-3>.

    Apart from the fact that 3000.00 is not a fixed point constant literal,
    I"m confused about something else...

    If 3000.00d is fixed<1,-3>, then 3000.0000d is also fixed<1,-3>.

    These rules result in

    3000.00d being fixed<1,-3>
    3000.01d being fixed<6,2>

    This doesn"t seem to make sense. If I bother to write the trailing zeros,
    surely I have a reason, namely, that I mean to use that scale. In other words,
    I think that

    3000.00d should be fixed<6,2>
    3000.0000d should be fixed<8,4>

    Why are fractional trailing zeros thrown away but fractional trailing
    non-zeros retained?

  • Reported: CORBA 2.2 — Wed, 18 Mar 1998 05:00 GMT
  • Disposition: Resolved — CORBA 2.3
  • Disposition Summary:

    No Data Available

  • Updated: Fri, 6 Mar 2015 21:35 GMT