On Mon, Jun 09, 2008 at 07:24:11PM +0200, Mikolaj Machowski wrote:

> 2. This is not strictly related to floating point, just noticed:
> 
>       :echo 1/0
>       2147483647
> 
>       :echo 1.0/0
>       2.147484e+09
> 
>    Shouldn't divide by 0 throw error?

The first command (:echo 1/0) gives the same output without the floating
point patch. It's a bug in (regular) Vim.

GI

-- 
My operat~1 system unders~1 long filena~1 , does yours?

Attachment: pgpq2j4gWadpQ.pgp
Description: PGP signature

Raspunde prin e-mail lui