What are Perl Numerical Literals?

PERLServer Side ProgrammingProgramming Scripts

<p>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 &minus;</p><table class="table table-bordered"><thead><tr><th style="text-align: center;">Type</th><th style="text-align: center;">Value</th></tr></thead><tbody><tr><td style="text-align: center;">Integer</td><td style="text-align: center;">1234</td></tr><tr><td style="text-align: center;">Negative integer</td><td style="text-align: center;">-100</td></tr><tr><td style="text-align: center;">Floating point</td><td style="text-align: center;">2000</td></tr><tr><td style="text-align: center;">Scientific notation</td><td style="text-align: center;">16.12E14</td></tr><tr><td style="text-align: center;">Hexadecimal</td><td style="text-align: center;">0xffff</td></tr><tr><td style="text-align: center;">Octal</td><td style="text-align: center;">0577</td></tr></tbody></table>
raja
Updated on 28-Nov-2019 07:55:04

Advertisements