Show/Hide Toolbars

XSharp

Single or double precision literals may be used to store numeric values in your code.

 

123.456
123.0
0.123
.123
123.456e+7
123.456e-7
$123.45

Real literals may have one of the following suffixes:

 

Suffix


S or s

Single precision (REAL4)

D or d

Double precision (REAL8)

M or m

Decimal

 

Floating point literals without suffix are stored as REAL8, unless you have specified the /vo14 compiler option, in which case they are stored as FLOAT literals.

 

Prefix


$

Currency Literal