On 09/06/08 19:24, Mikolaj Machowski wrote:
> Things works, thanks :)
>
> Few things I'd like to see explained (fixed, implemented?):
>
> 1. Once a float, always a float. Don't see way to make float other type
>     of data - string, integer.
>
> 2. This is not strictly related to floating point, just noticed:
>
>        :echo 1/0
>        2147483647

This is documented, about half a page below |expr-/|:

<quote>
When the righthand side of '/' is zero, the result is 0x7fffffff.
</quote>

>
>        :echo 1.0/0
>        2.147484e+09

With the new floating point patch, I get "inf" here. Also for ":echo 
1/0.0" or any other division by zero except when both operands are integers.

>
>     Shouldn't divide by 0 throw error?
>
> 3. floor(), ceil(), trunc() ?
>
> 4. Cosmetic thing but truncating of 0s in floating numbers would be user
>     friendly (eg. store and display 0.5 instead of 0.500000)
>
> m.


Best regards,
Tony.
-- 
Come, every frustum longs to be a cone,
And every vector dreams of matrices.
Hark to the gentle gradient of the breeze:
It whispers of a more ergodic zone.
                -- Stanislaw Lem, "Cyberiad"

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

Raspunde prin e-mail lui