]> git.sesse.net Git - stockfish/blobdiff - src/notation.cpp
Use double everywhere
[stockfish] / src / notation.cpp
index 06573c78ce14424b12f00608c751f8f60095e6f8..3f79a44b6290d246a95af9b85506b71aecad0e6a 100644 (file)
@@ -207,7 +207,7 @@ static string score_to_string(Value v) {
       s << "-#" << (VALUE_MATE + v) / 2;
 
   else
-      s << setprecision(2) << fixed << showpos << float(v) / PawnValueMg;
+      s << setprecision(2) << fixed << showpos << double(v) / PawnValueMg;
 
   return s.str();
 }