diff --git a/statustemp.cpp b/statustemp.cpp index 87ce354..beb8ac7 100644 --- a/statustemp.cpp +++ b/statustemp.cpp @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) file.open(filepath); std::getline(file, line); file.close(); - temperature = static_cast(std::stof(line) / 1000.0); + temperature = std::stof(line) / 1000.0F; std::cout << format("{:.1Lf}°C", get_style(temperature), temperature) << std::endl;