What is the equivalent of the VB "Fix" fuction in C++? Thanks
Amon Ra The Power of Learning.
You can do it by multiplying and using a cast.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
one way: PHP Code: int fix(float a){ a = a*10; return (int)(a/10); }
int fix(float a){ a = a*10; return (int)(a/10); }
thanks guys...=)
Forum Rules