Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Detecting whether UV fits into an NV

by ikegami (Patriarch)
on Feb 27, 2020 at 07:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11113475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found