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?  (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?

-- 
Best regards,
Bill


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui