Scalar Data

Numbers

Write number literals in any format you want.

(Internally they will be stored as double-precision floating-point values.)

Examples:

$a =    134 ;
$a =   -2004 ;
$a =    56.79 ;
$a =   -56.7913 ;
$a =    7.25e24 ;
$a =   -12E-29 ;
Do not start the number with zero!
Example:
$a = 0377 ;
This is 377 octal, same as 255 decimal.


Table of Contents.
Next.