Pardon my ignorance, data conversion
Aahz Maruch
aahz at netcom.com
Sun Jan 16 23:38:52 EST 2000
In article <38829357.ED633932 at home.com>,
Robert W. McGwier <rwmcgwier at home.com> wrote:
>
>I need to do the simple task of taking a nonnegative floating point
>variable and taking its integer part and storing it in an integer.
>Damned if I can find how to do it.
import math
i = int(math.floor(real))
--
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Have a *HAPPY* day!!!!!!!!!!
More information about the Python-list
mailing list