Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Hallo, Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
Note to other people: we know [i] is similar to what James wants, but it's not similar enough.
I can't really follow: What's wrong with
[+/- 0.5] | [int]
as in attached patch which doesn't need any externals at all?
Forgot to say; The only difference to a round as in C was the handling of halfway cases smaller than 0, so if that is important to you, the abstraction gets a little bit more complicated, as in attached new version, which rounds away from zero even in sub-zero halfway cases.
Frank Barknecht _ ______footils.org_ __goto10.org__