Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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??

Help for this page

Select Code to Download


  1. or download this
     
    use v5.12;
    use warnings;
    ...
    printf "%.16f\n",$a;
    printf "%.16f\n",("".$a);
    
  2. or download this
    0.9999999999999999
    1.0000000000000000
    

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 sharing their wisdom with the Monastery: (2)
As of 2024-06-21 00:52 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.