Fixed .convert f -> c
This commit is contained in:
parent
00cb7621b5
commit
bd3caa8407
@ -148,10 +148,10 @@ namespace NadekoBot.Modules.Utility
|
||||
break;
|
||||
}
|
||||
//from Kelvin to target
|
||||
switch (targetUnit.Triggers.First())
|
||||
switch (targetUnit.Triggers.First().ToUpperInvariant())
|
||||
{
|
||||
case "C":
|
||||
res = value - 273.15m; //celcius!
|
||||
res = res - 273.15m; //celcius!
|
||||
break;
|
||||
case "F":
|
||||
res = res * (9m / 5m) - 459.67m;
|
||||
|
Loading…
Reference in New Issue
Block a user