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