Hi, I'm looking for the module that floor() is located in. I would have assumed it would be loaded from the path, but after trying several times, its not.
Also, while I'm at it, is there a way to permanently add things to the path. So I can add my own modules from folders not within the default location.
If its just a question of editing a file in C, then I can probably do it, assuming I can find the sys module.

I think you need the math module:
http://docs.python.org/lib/module-math.html

For adding things permanently, I'm not sure, but you can use the sys.path.append(FolerPath) at the beginning of your program for having direct recognition of a module in that folder... If you want your modules to be available in other programs, maybe edit the PYTHONPATH envirnment variable in windows ...

Ignore this post ...

Thanks. I'm used to a language that autoloads all math funcs :)

You can also visit this site http://pydoc.org/ and fill the form with

floor

to discover it's in the math module ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.