My apologies,
the "calc"'s "int" option doesn't round half away from zero.
Actually I used "int", but forgot the parentheses...
[rocketmouse@archlinux ~]$ calc "int((6/120)*4*(1/24))"
83
[rocketmouse@archlinux ~]$ calc "((6/120)*4*(1/24))"
~83.
[rocketm
On Fri, 3 Feb 2017 06:01:21 +0100, Ralf Mardorf wrote:
>[weremouse@moonstudio ~]$ bpm2ms | head -9
>(6ms/120BPM)*4*(1/1)= 2000ms
>(6ms/120BPM)*4*(3/4)= 1500ms
>(6ms/120BPM)*4*(1/2)= 1000ms
>(6ms/120BPM)*4*(1/4)= 500ms
>(6ms/120BPM)*4*(1/8)= 250ms
>(6ms/120BPM)*4*(1/12)= ~166