floor() function and mathematical integers

Aahz Maruch aahz at panix.com
Thu May 24 20:30:30 EDT 2001


In article <3b0d45dd.203569207 at wa.news.verio.net>,
Bengt Richter <bokr at accessone.com> wrote:
>
> >>> 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

What's this prb() function?
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"You do not make history; you can only hope to survive it."  --G'kar



More information about the Python-list mailing list