Commit c1c16f2e authored by Jan Möbius's avatar Jan Möbius
Browse files

Removed trunc function, does not build on windows, david said its ok


git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@38 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent f336bc7d
......@@ -58,13 +58,13 @@
inline double nearbyint(double x) {
if( x >= 0.0 )
return int(trunc( x + 0.5));
return int( x + 0.5 );
else
return int(trunc( x - 0.5));
return int( x - 0.5 );
}
inline double round ( double _value ) {
return nearbyint(_value);//floor( _value + 0.5 );
return nearbyint(_value);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment