Math.Pow(-1, 2) Returns -1 in .NET 8 Canary Build

2025-07-02
Math.Pow(-1, 2) Returns -1 in .NET 8 Canary Build

An osu! game developer reported a bizarre issue in Windows 11 Canary build (27881.1000) where `Math.Pow(-1, 2)` in .NET 8 unexpectedly returns -1 instead of 1. The problem also occurs in C++'s `std::pow()`, but works correctly in Python. The developer has filed a GitHub issue and suggests joining the osu! Discord server for further details.

Development