Su Windows 11 Insider Preview, Canary (build 27881.1000), Math.Pow(-1, 2) in C# restituisce -1 anziché 1.
Anche la funzione std::pow(-1, 2) in C++ restituisce -1, suggerendo un problema più ampio su Windows.
In ambienti diversi come Python il calcolo restituisce correttamente 1.
Il bug è stato segnalato su GitHub da un contributore del progetto osu! nella repository dotnet/runtime.
Get notified when new stories are published for "🇮🇹 Hacker News Italiano"