Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I guess I am way too new to this... can someone tell me where I can find an answer to my answer. I read the following:
Perl computes only with double-precision floating-point values.[2] This means that there are no integer values internal to Perl; an integer constant in the program is treated as the equivalent floating-point value.[3] You probably won't notice the conversion (or care much), but you should stop looking for integer operations (as opposed to floating-point operations), because there aren't any.
[2] A "double-precision floating-point value" is whatever the C compiler that compiled Perl used for a double declaration.
[3] Unless you use "integer mode," but that's not on by default.
And I am trying to wrap my little brain around numbers/scalar data but this is not working... Please. Thanks for the patience - newbie
Janitored by davido: Added formatting to match user's input, and used code tags to prevent square brackets from being interpreted as links.
20040928 Edit by []: Changed title from 'Don't understand, what this means'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Confusion Regarding Perl's Numerical Handling
by graff (Chancellor) on Sep 28, 2004 at 02:12 UTC | |
|
•Re: Confusion Regarding Perl's Numerical Handling
by merlyn (Sage) on Sep 27, 2004 at 23:30 UTC | |
|
Re: Confusion Regarding Perl's Numerical Handling
by ikegami (Patriarch) on Sep 28, 2004 at 01:40 UTC |