Patrick Texier wrote:
> Le Tue, 08 Apr 2008 22:45:18 +0200, Bram Moolenaar a écrit dans le
> message <[EMAIL PROTECTED]> :
>
> > One of the items I planned to discuss is why Vim has no floating point
> > support. Well, this turned into actually implementing it.
>
> Thanks Bram.
>
> Using Windows98, gVim 7.1.291 and Borland C++ 5.5.1 I have :
>
> - A compiler warning:
>
> Warning W8065 .\eval.c 7289: Call to function 'pow' with no prototype in
> function string2float
You should #define HAVE_MATH_H in os_win32.h.
> - Strange results:
>
> :echo &1.5 * &1.609344
> 1.0762210
I get 2.414016. Perhaps this is caused by the problem with pow()?
> :echo 1500 * 1609
> :2413500
>
> I added to my make_bc5.mak:
> ======= make_bc5.mak ========
> !if ("$(FLOAT)"=="")
> FLOAT = yes
> !endif
>
> !if ("$(FLOAT)"=="yes")
> DEFINES = $(DEFINES) -DFEAT_FLOAT
> !endif
> =============================
Should not be needed, since FEAT_FLOAT is defined when FEAT_EVAL is
defined and HAVE_MATH_H. So you need to change os_win32.h as mentioned
above.
--
hundred-and-one symptoms of being an internet addict:
260. Co-workers have to E-mail you about the fire alarm to get
you out of the building.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---