From 63d85f73a8e023c24f2c75c0b59302e5e7508fd8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 24 Aug 2021 22:20:32 +0200 Subject: [PATCH] statustemp: Don't convert unnecessarily. --- statustemp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;