Re: Decimal Floating Point (was Re: why still use C?)
>>>> There are a few constraints, though. For example, the ISO[color=blue][color=green][color=darkred]
>>>> COBOL 2002 standard specifies that intermediate calculations
>>>> be done using 32 decimal digits of precision. 32 digits of BCD
>>>> into a 128-bit register leaves very little room for a sign and
>>>> exponent.
>>>
>>> I still have never written a COBOL program, but is that fixed point
>>> or floating point?[/color]
>>
>> 'Standard' COBOL arithmetic. Calculate as well as possible and then
>> assign to a fixed-point variable. Best ask COBOL folk what that is
>> :-).[/color]
>
> As you say COBOL requires 32 decimal digits of precision. Would that
> be _exactly_ 32 digits of precision or _at least_ 32 digits of
> precision? I think producing _exactly_ 32 digits if what you have
> available is 34 digits could be difficult.[/color]
I forget the actual wording. The final draft is on the web, somewhere,
if you want to check.
Mike Cowlishaw
--
comp.lang.c.mod erated - moderation address: clcm@plethora.n et
>>>> There are a few constraints, though. For example, the ISO[color=blue][color=green][color=darkred]
>>>> COBOL 2002 standard specifies that intermediate calculations
>>>> be done using 32 decimal digits of precision. 32 digits of BCD
>>>> into a 128-bit register leaves very little room for a sign and
>>>> exponent.
>>>
>>> I still have never written a COBOL program, but is that fixed point
>>> or floating point?[/color]
>>
>> 'Standard' COBOL arithmetic. Calculate as well as possible and then
>> assign to a fixed-point variable. Best ask COBOL folk what that is
>> :-).[/color]
>
> As you say COBOL requires 32 decimal digits of precision. Would that
> be _exactly_ 32 digits of precision or _at least_ 32 digits of
> precision? I think producing _exactly_ 32 digits if what you have
> available is 34 digits could be difficult.[/color]
I forget the actual wording. The final draft is on the web, somewhere,
if you want to check.
Mike Cowlishaw
--
comp.lang.c.mod erated - moderation address: clcm@plethora.n et
Comment