frerich.raabe at gmx.de
Wed Mar 19 08:51:10 UTC 2003
On Wednesday 19 March 2003 17:41, Jens Krüger wrote:
> Oh yes, its true
> but it is no problem to add the case of negative values
> #define round(x) (x < 0 ? int(x - 0.5) : int(x + 0.5))
> It was only an idea to overcome the problem of rewriting the code if a
> function is missing.
This will break for invocations like "int i = round(++x);"
More information about the umbrello-devel