Mikolaj Machowski wrote:

> Dnia Saturday 12 of April 2008, Tony Mechelynck napisa=B3:
> > On 12/04/08 20:29, Mikolaj Machowski wrote:
> > > Dnia Saturday 12 of April 2008, Bram Moolenaar napisa=B3:
> > >> Here is an update for the floating point patch.  The 'g' argument for
> > >> printf() was implemented and a few bug fixes.
> > >>
> > >> This is to be applied to the original source code, without the older
> > >> floating point patch.
> > >
> > > One thing:
> > > let a =3D&1.2
> >
> >     echo a
> >     1.200000
> >     (a Float IIUC)
> 
> 1,200000         " type Float
> 
> >
> > > let b =3D string(b)
> >
> >     let b =3D string(a)
> >     echo b
> >     1.200000
> >     (a String IIUC)
> 
> 1,200000         " type String
> 
> >
> > > let c =3D eval(b)
> 
> E488, but something was done...
> 
> >     echo c
> >     1200000
> >     (a String =3D '1' . '200000')
> 
> 1               " type Number
> 
> I get different results. I strongly suspect localization (pl_PL)
> -> , instead of . as separator.

Hmm, that is a bit of a problem.  In this context we really want the
1.234 form.  Switching the locale completely might be a bit slow.

> > These are expected.
> 
> String isn't really expected. With fully working "translation" (as with
> other data types) at the end should be Float.

See my other message.

-- 
Back up my hard drive?  I can't find the reverse switch!

 /// 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
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui