Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX/HP C Compiler: HP C/HP-UX Reference Manual > Chapter 10 HP C/HP-UX Implementation Topics

Conversions Between Floats, Doubles, and Long Doubles

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

  • When a long double is converted to a double or float, or when a double is converted to a float, the original value is rounded to the nearest representable value as the new type. If the original value is equally close to two distinct representable values, then the value chosen is the one with the least significant bit equal to zero.

  • Conversions between floating-point types involve a change in the exponent, as well as the mantissa. It is possible for such a conversion to overflow.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.