Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^7: [OT: JavaScript] JS remainder operation ('%')

by LanX (Saint)
on Jan 18, 2024 at 15:04 UTC ( [id://11157083]=note: print w/replies, xml ) Need Help??


in reply to Re^6: [OT: JavaScript] JS remainder operation ('%')
in thread [OT: JavaScript] JS remainder operation ('%')

> Some might even argue that "perl's interpolation

That's a very good point!

But it's not the interpolation, but more generally the stringification .

use v5.12; use warnings; $a= 1-1e-16; printf "%.16f\n",$a; printf "%.16f\n",("".$a);

0.9999999999999999 1.0000000000000000

Consequently this should be documented for stringification, and print should reference it.

Update

Apart from mentions in perlglossary and overload there is not much on stringification to be found in perldocs :/

https://perldoc.perl.org/perlglossary#stringification

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11157083]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-06-12 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.