mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-16 07:11:22 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
17 lines
401 B
C#
Executable file
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;
|
|
}
|
|
}
|
|
}
|