On Fri, 20 Jun 2008 14:29:07 +0200, Vladimir Marek wrote:
I don't have the previous post.
> > As a workaround in eval.c you can simply replace
> > rettv->vval.v_float = round(f);
> > with
> > rettv->vval.v_float = ceil(f + 0.5);
Yes.
> > and
> > rettv->vval.v_float = trunc(f);
> > with
> > rettv->vval.v_float = ceil(f);
if (f < 0)
rettv->vval.v_float = ceil(f);
else
rettv->vval.v_float = floor(f);
> On Solaris, all three (round, trunc, ceil) are part of libmath.so, so
> you need #include <math.h> and link with -lm.
I can't find round and trunc in Borland header files.
--
Patrick Texier
vim:syntax=mail:ai:ts=4:et:tw=72
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---