PDA

View Full Version : "round" problems


Anton
02-06-2005, 10:15 AM
each time I try round(something);
it says "call of function without prototype"
how can I activate the function?

Tytus Gerrish
02-06-2005, 10:50 AM
what ever are you talking about?

Anton
02-06-2005, 11:02 AM
what ever are you talking about?

I'm talking about the round(x) function
it converts floats to integers

Ryan M.
02-06-2005, 11:16 AM
If it's in the math library, you have to include the header file for it. I don't remember what the library's name actually is right now, but you'll have something like this:
#include <mathlib.h>
near the top of the file where you're trying to call the function from.

EDIT: Looking it up, it's math.h, so you'll have:
#include <math.h>

Hope that helps :)

Anton
02-06-2005, 11:47 AM
I already tried it, and it doesn't help. could you try it wit your code and check if it is a unique problem of mine, or maybe it is just included in a different file?