Bill McCarthy wrote:
> On Sun 8-Jun-08 11:19am -0600, Bram Moolenaar wrote:
>
> > Attached you will find the latest floating point patch. This goes on
> > top of the current Vim sources (7.1.311). If you included a previous
> > version of the floating point patch you need to remove that first.
> >
> > In this version 123.456 is seen as a floating point number. So there is
> > no longer the weird syntax &123.456. This is a tiny backwards
> > compatibility problem. Which is one of the reasons for you to try this
> > out. Does this break any script?
> >
> > Another change is using strtod() instead of our own code for converting
> > text to a floating point number. This works much better for overflows.
> > It does require the LC_NUMERIC value of the locale to be set to "C".
> > Otherwise a comma might be used in some situations, which would be very
> > confusing. Please check if this works correctly:
> >
> > echo 0.9999999999999999999999999999999999
> >
> > The result should be "1.000000".
>
> That echo test performed correctly before applying the new
> patch. I'm using your original April patch, John Beckett's
> patch and your patch of 6/5 to allow not using '&'.
>
> I have a couple of questions before I test with this patch.
> (1) does this obviate the need for Mr. Beckett's patch?
No, you don't need anything else. The strtod() function replaces most
of what John Becket wrote.
> (2) does this LC_NUMERIC actually work on Windows - I recall having
> problems with LC_ALL using the unix sort of GNU
> coreutils - is this an environment variable we need to set?
I haven't tried it. So please set your environment so that a comma is
used for a decimal point and then run Vim to try out the floating point
stuff.
--
hundred-and-one symptoms of being an internet addict:
18. Your wife drapes a blond wig over your monitor to remind you of what she
looks like.
/// 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
-~----------~----~----~----~------~----~------~--~---