3 ms·
A negative power, i.e. 2^(-n) is just 1/(2^n). I'm surprised the author didn't remember that with their own 2^-1 = 0.5 example and eventually reached out to awk
by BearOso 3y ago
A negative power, i.e. 2^(-n) is just 1/(2^n). I'm surprised the author didn't remember that with their own 2^-1 = 0.5 example and eventually reached out to awk for it.
- tryauuum 3y agoI don't understand how this would help the author. Since the bash doesn't support floating point numbers anyway
- anthk 3y agoThis. Also, gawk has netwoki support, so you can write an mc server with just gawk.
- BearOso 3y agoI had the same thought. bc would have been a lighter choice. And tryauuum, I think the author only needed powers of two to emulate floating point in the first place. So they could just divide said number by 2 a number of times.