I haven't been following this long thread too closely, but it seems to me that the right way to do this is for Vim to delegate floating-point handling to the underlying C implementation of double arithmetic as much as possible, and to wrap the usual set of FP functions. As far as I can tell, this is what almost all other languages do nowadays. It certainly would give fewer surprises to get NaN for division by 0.0 than 0x7FFFFFFF.
The canonical reference for floating point seems to be Goldberg's "What Every Computer Scientist Should Know About Floating-Point Arithmetic", http://docs.sun.com/source/806-3568/ncg_goldberg.html. I should re-read it myself; it's been years. -- /George V. Reilly [EMAIL PROTECTED] http://www.georgevreilly.com/blog http://blogs.cozi.com/tech --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
