[Cfp-interest] DFP: Conversions among FP types
Jim Thomas
jaswthomas at sbcglobal.net
Tue Dec 4 09:16:29 PST 2012
On Dec 3, 2012, at 12:48 PM, Fred J. Tydeman wrote:
> Change 6.3.1.5#1:
> "When a value of real floating type is converted to a real floating
> type,..."
> to:
> "When a value of real floating type is converted to a generic
> floating type,…"
Why is this change needed?
>
> Make the last sentence:
> "Results of some implicit conversions may be represented in greater
> range and precision than that required by the new type (see 6.3.1.8
> and 6.8.6.4)."
> into its own paragraph.
i believe what you're trying to do is separate conversions to generic from conversions to decimal. Right? What do you see that's wrong with the current spec?
-Jim
>
> Add after 6.3.1.5#1.
> [2] When a value of real floating type is converted to a decimal
> floating type, if the value being converted cannot be represented
> exactly, the result is correctly rounded with exceptions raised as
> specified in IEC 60559, otherwise, it is unchanged.
>
>
> ---
> Fred J. Tydeman Tydeman Consulting
> tydeman at tybor.com Testing, numerics, programming
> +1 (775) 287-5904 Vice-chair of PL22.11 (ANSI "C")
> Sample C99+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.
>
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest
More information about the Cfp-interest
mailing list