Perl 5 Numeric Formats : Data Type « Data Type « Perl






Perl 5 Numeric Formats

   


Type                     Format               Example

Integer                  NN                   12

Floating point           NN.NN                342.176

Scientific               NN.NNENN             42.04E-6

Big number               NN_NNN_NNN           6_000_000

Hexadecimal              0xNNNN               0xFFD3

Octal                    0NNN                 0374

   
    
    
  








Related examples in the same category

1.Basic Perl Datatypes
2.Number can be expressed by ###_###_### for ###,###,###
3.Number systems
4.Numeric Literal Formats and Notation
5.Numeric Literals
6.Using Numbers in Scalar Variables