mysimulation/server/tso.common/Utils/MoneyFormatter.cs
Tony Bark 22191ce648 Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib
- Added FreeSO's API server to handle most backend operations
2024-05-01 02:55:43 -04:00

17 lines
401 B
C#
Executable file

using System.Globalization;
namespace FSO.Common.Utils
{
public class MoneyFormatter
{
public static string Format(uint money)
{
var val = money.ToString("N", new CultureInfo("en-US"));
var io = val.LastIndexOf(".");
if(io != -1){
val = val.Substring(0, io);
}
return "$" + val;
}
}
}