Closed ibasin closed 1 month ago
In Pow10 method there is an obvious bug. You are missing a minus sign. This is the code you have
private static float Pow10(int y) { return -_negativePowersOf10.Length < y && y <= 0 ? _negativePowersOf10[-y] : (float)Math.Pow(10.0, y); }
The last line should be: (float)Math.Pow(10.0, -y); //you are missing a minus sign
Sorry, this is not a bug. My bad.
In Pow10 method there is an obvious bug. You are missing a minus sign. This is the code you have
The last line should be: (float)Math.Pow(10.0, -y); //you are missing a minus sign