This commit is contained in:
2026-04-09 02:55:12 +05:30
parent cace0cc664
commit ced9c9fa35
13 changed files with 5758 additions and 1514 deletions
+8 -1
View File
@@ -7,8 +7,15 @@ public static class CoinHelper
return float.Parse(whole + "." + fraction);
}
public static int RcToCoins(float coins){
string s = coins.ToString("N1");
int whole = int.Parse(s.Split('.')[0]);
int fraction = int.Parse(s.Split('.')[1]);
return (whole * 4) + fraction;
}
public static string FormatString(int coins)
{
return Format(coins).ToString("N2");
return Format(coins).ToString("N1");
}
}