What are Perl Numerical Literals?

PERLServer Side ProgrammingProgramming Scripts

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
raja
Published on 28-Nov-2019 12:25:04
Advertisements