It is currently March 28th, 2024, 11:07 am

Bug in formula

Report bugs with the Rainmeter application and suggest features.
Post Reply
raimudancok
Posts: 3
Joined: July 7th, 2017, 5:47 am

Bug in formula

Post 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))
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: Bug in formula

Post by FreeRaider »

I am not a mathematician, but in the binary system there are no negative numbers (at least that is what I remember)
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Bug in formula

Post 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
Post Reply