Numbers

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
   Comments
   Numbers
   Literals
   Var and const
   Operators
   Statements and blocks
   Program flow
   Trace facility
   Exception handling
   Functions
   Predefined identifiers
Directives
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  

Numbers may be noted either decimal, octal or hexadecimal. While decimal notation can be used for integers and floating points, octal and hexadecimal notation allows integers only.

Numbers starting with 0x or 0X are considered hexadecimal, numbers starting with 0 are assumed to be octal and numbers starting with 1 to 9 are interpreted decimal.

Floating point constants may be written either in fixed point or exponential notation.

Examples:

123        // decimal integer
123.456    // decimal floating point
1.23456e+2 // same value in exponential notation
0177       // octal value
0x1f7      // hex value
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>