S
Stanley Rice
Hi all, I got confused while referencing to the 4.8/1 in draft n3242.
4.8 Floating point conversions
A prvalue of floating point type can be converted to a prvalue of
another floating point type. If the source value can be exactly
represented in the destination type, the result of the conversion is
that exactly representation. If the source value is between two
adjacent destination values, the result of the conversion is an
implementation-defined choice of either of those values. Otherwise,
the behavior is undefined.
I do not exactly know what the 'destination type' and 'two adjacent
destination value' mean. Could you explain to me and show me some
example if possible.
What's more, I found reading the standard is quite difficult. There
are so many new terms that were never heard before. I have to keep
cross referencing, which in return, I forget where I got started. Is
there experienced ones who can give me some suggestions about how to
read standards.
4.8 Floating point conversions
A prvalue of floating point type can be converted to a prvalue of
another floating point type. If the source value can be exactly
represented in the destination type, the result of the conversion is
that exactly representation. If the source value is between two
adjacent destination values, the result of the conversion is an
implementation-defined choice of either of those values. Otherwise,
the behavior is undefined.
I do not exactly know what the 'destination type' and 'two adjacent
destination value' mean. Could you explain to me and show me some
example if possible.
What's more, I found reading the standard is quite difficult. There
are so many new terms that were never heard before. I have to keep
cross referencing, which in return, I forget where I got started. Is
there experienced ones who can give me some suggestions about how to
read standards.