Closed samdoshi closed 6 years ago
i can definitely see that as being desirable!
On Thu, Apr 14, 2016 at 10:05 AM, Sam Doshi notifications@github.com wrote:
At the moment AVG and Q.AVG perform integer division when calculating the average.
e.g.
AVG 2 3
2
Should they round instead?
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/monome/teletype/issues/38
In the PR, AVG -32767 -32768 == -32767 and AVG 32766 32767 == 32767, which is "round up" not "round away from zero".
GNU C round() goes away from zero.
let's do that then.
On Tue, Sep 12, 2017 at 11:29 AM, Poindexter Frink <notifications@github.com
wrote:
GNU C round() goes away from zero.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/monome/teletype/issues/38#issuecomment-328871455, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPEcPHiD77jlMHoUHrgnUy2KVPg_j0aks5shpXrgaJpZM4IHZvU .
At the moment
AVG
andQ.AVG
perform integer division when calculating the average.e.g.
Should they round instead?