floor() function and mathematical integers

Tim Peters tim.one at home.com
Thu May 24 20:57:02 EDT 2001


[Bengt Richter]
> >>> import math
> >>> M=5L; B=3L; E=33L
> >>> a = M*B**E
> >>> a,float(a),math.floor(a)
> (27795302832777615L, 27795302832777616.0, 27795302832777616.0)
> >>> prb(a)
> 1100010101111111010111000111111110001011010100110001111

[Aahz]
> What's this prb() function?

Not part of Python; from context it looks like a function Bengt wrote to
PRint Bits, i.e. to print its argument in binary.





More information about the Python-list mailing list