From fae2829a688fe08973b6858ed19217496e0f8b62 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 10 Oct 2016 03:26:51 +0200 Subject: [PATCH] Fixed convert for temperature --- src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs b/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs index 459466bb..ead333ca 100644 --- a/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs +++ b/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs @@ -134,7 +134,7 @@ namespace NadekoBot.Modules.Utility res = value + 273.15m; //celcius! break; case "F": - res = (value + 459.67m) * (5 / 9); + res = (value + 459.67m) * (5m / 9m); break; default: res = value; @@ -147,7 +147,7 @@ namespace NadekoBot.Modules.Utility res = value - 273.15m; //celcius! break; case "F": - res = res * (9 / 5) - 458.67m; + res = res * (9m / 5m) - 459.67m; break; default: break;