Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:25

0001 #!/usr/bin/env python
0002 
0003 from __future__ import print_function
0004 import sys
0005 
0006 def main():
0007   if len(sys.argv) < 2:
0008     print("Usage: %s decimal" % sys.argv[0])
0009     return
0010 
0011   decimal = int(sys.argv[1])
0012   print("{0:b}".format(decimal))
0013   return
0014 
0015 
0016 # ______________________________________________________________________________
0017 if __name__ == '__main__':
0018 
0019   main()