Skip to content

Conversation

@OfficialIncubo
Copy link
Contributor

...it's using negative numbers.

It returned NaN (not a number) when it calculates the square root with a negative number.
This fix addresses by adding fabs() function inside sqrt() to be 100% equivalent as ns-eel2.
For example: sqrt(-2) should do sqrt(abs(-2)) -> sqrt(2) -> 1.4142.

...it's using negative numbers.
@kblaschke kblaschke merged commit 987c648 into projectM-visualizer:master Jul 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants