next up previous contents index
Next: Floating types Up: Arithmetic operands Previous: Signed and unsigned

Floating and integral

There was strong agreement that floating values should truncate toward zero when converted to an integral type, the specification adopted in the Standard. Although the Base Document permitted negative floating values to truncate away from zero, no Committee member knew of current hardware that functions in such a manner.gif

3 2 1 4


Pete Jinks
Fri Jan 19 12:31:56 GMT 1996