What are 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 −

TypeValue
Integer1234
Negative integer-100
Floating point2000
Scientific notation16.12E14
Hexadecimal0xffff
Octal0577

Updated on: 28-Nov-2019

231 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements