Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Detecting whether UV fits into an NV

by ikegami (Pope)
on Feb 27, 2020 at 07:29 UTC ( #11113475=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $x = ( 1 << 54 ) | 1;
    say $x;  # 18014398509481985
    ...
    $x = unpack 'J', pack 'J', $x;
    
    say $x;  # 18014398509481984
    
  2. or download this
    use strict;
    use warnings;
    ...
    $x = svref_2object(\$x)->int_value;
    
    say $x;  # 18014398509481984
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-11-24 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?