Edward L. Fox wrote:

> If you strike Ctrl-a in normal mode on 12345678912, you will get
> 3755744321. Obviously an integer overflow happens here. Do you think
> it's necessary to add large decimal related algorithm into Vim to
> solve this kind of problems? Or at least we should give out an error
> message...

Or compile Vim with 64 bit ints.

I'm not sure it is worth adding code for big numbers, they are hardly
ever used.  Vim also doesn't support floating point.  One has to stop
somewhere.  After all this is a text editor, not a spreadsheet.

-- 
Q:   How many hardware engineers does it take to change a lightbulb?
A:   None.  We'll fix it in software.

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

Reply via email to