Page 1 of 1
Bug in formula
Posted: July 12th, 2017, 8:51 am
by raimudancok
any operator followed by bitwise not, unary minus then parentheses will cause rainmeter to freeze
Code: Select all
[test]
Measure=Calc
Formula=1 - ~-(1)
; this works fine
; Formula=1 - ~(-(1))
Re: Bug in formula
Posted: July 12th, 2017, 3:27 pm
by FreeRaider
I am not a mathematician, but in the binary system there are no negative numbers (at least that is what I remember)
Re: Bug in formula
Posted: July 12th, 2017, 4:04 pm
by balala
FreeRaider wrote:I am not a mathematician, but in the binary system there are no negative numbers (at least that is what I remember)
Sorry FreeRaider, but that's wrong. For example:
https://stackoverflow.com/questions/4295578/explanation-of-bitwise-not-operator