Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Floating point support?



On Sep 15,  9:16am, Sven Wischnowsky wrote:
} Subject: Re: Floating point support?
}
} Bart Schaefer wrote:
} 
} > Another is that array subscripts are math-eval'd, and some pretty strange
} > things may happen in any code that relies upon multiplication or division
} > to compute subscripts if floating point gets involved (even if the result
} > is rounded down).  Not that I'm directly aware of any such code ...
} 
} Hm, but that last one is the same as in every other programming
} language.

The difference is that one used to be able to count on a certain behavior
from zsh, and we're talking about changing that.

} So maybe it's OK if we just mention these problems in the docs.

Probably.  It's not as if we haven't changed plenty of other behavior
already ...

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author