Numeric Literal Formats and Notation : Data Type « Data Type « Perl






Numeric Literal Formats and Notation

   

Type                  Notation           Example

Integer               NN                 12

Floating point        NN.NN              342.176

Scientific            NN.NNENN           42.04E-6

Big number            NN_NNN_NNN         6_000_000

Hex                   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 Literals
5.Perl 5 Numeric Formats
6.Using Numbers in Scalar Variables