diff --git a/src/ui/PrimaryFlightDisplay.cpp b/src/ui/PrimaryFlightDisplay.cpp index b5a732bf37b0dc2c78fea88b089dc5263895a2dc..695c9e448d20a4dbcc8e7f35bef74696d184c35a 100644 --- a/src/ui/PrimaryFlightDisplay.cpp +++ b/src/ui/PrimaryFlightDisplay.cpp @@ -112,7 +112,7 @@ */ double PrimaryFlightDisplay_round(double value, int digits=0) { - return floor(value * pow(10, digits) + 0.5) / pow(10, digits); + return floor(value * pow(10.0, digits) + 0.5) / pow(10.0, digits); } const int PrimaryFlightDisplay::tickValues[] = {10, 20, 30, 45, 60};