Perl Numerical Literals



Perl stores all the numbers internally as either signed integers or double-precision floating-point values. Numeric literals are specified in any of the following floating-point or integer formats −

Type Value
Integer 1234
Negative integer -100
Floating point 2000
Scientific notation 16.12E14
Hexadecimal 0xffff
Octal 0577
Updated on: 2019-11-28T07:55:04+05:30

352 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements