HPlogo HP C/HP-UX Reference Manual: Version A.05.55.02 > Chapter 5 Expressions and Operators

Floating-Point Expressions

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Floating-point expressions are expressions that, after all automatic and explicit type conversions, produce a result that has one of the floating-point types. If x is a float or double, the following are floating-point expressions:

  • x

  • x + 3

  • x / y * 5

  • 3.0

  • 3.0 - 2

  • 3 + (float) 4

© Hewlett-Packard Development Company, L.P.