Pardon my ignorance, data conversion

Robert W. McGwier rwmcgwier at home.com
Sun Jan 16 22:58:45 EST 2000


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.

In "C"::


    int i;
    double x;

    i = floor(x);


Can this be so hard or am I missing the obvious?

Sorry
Bob





More information about the Python-list mailing list