View Single Post
  #2 (permalink)  
Old December 17th, 2013, 05:51 AM
Stormbringer Stormbringer is offline
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also intrested in such an example.

The book says (p. 157): "Widening conversions always succeed and a cast is optional. Magnitude is never lost but precision may be."

The type conversion from decimal to double is magnitude safe but not precision safe. So this could be a candidate example, but the problem is that the cast is NOT optional. So according to the citation above it is not widening.

Would appreciate some help with this, thanks.
Reply With Quote