Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How can I set a bit to 0 ?

by stevieb (Canon)
on May 26, 2022 at 20:56 UTC ( [id://11144206]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    printf("orig:    %b\n", $num);
    printf("flipped: %b\n", $flipped);
    
  2. or download this
    steve@maezi ~/scratch >perl bit.pl
    orig:    11100111
    flipped: 10100111
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2024-04-25 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found