[omniORB] CORBA::Fixed::round() method

Duncan Grisby duncan@grisby.org
Wed Mar 5 15:47:01 2003


On Monday 3 March, "Renzo Tomaselli" wrote:

>     CORBA::Fixed CORBA::Fixed::round(CORBA::UShort scale) const {
>       if (scale >= pd_scale)
>         return *this;
>         ...
> 
> which doesn't allow to create any fixed having a higher scale, so that it
> looks like a bug.

round() is used to round an existing fixed number to have a smaller
scale. Rounding it to have a larger scale doesn't change it. Why do
you think it would?

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --