Cleanup some items.

This commit is contained in:
2025-11-21 15:02:25 -05:00
parent 92bd70045b
commit 827aefd1a2
3 changed files with 9 additions and 4 deletions

View File

@@ -248,7 +248,12 @@ namespace MarketData.Utils
public static String FormatNumberConstrain(double value,int places=1,bool commas=false)
{
String strValue=null;
if(value>=1000000000)
if(value>=1000000000000)
{
value/=1000000000000;
strValue=Utility.FormatNumber(value,places,commas)+"T";
}
else if(value>=1000000000)
{
value/=1000000000;
strValue=Utility.FormatNumber(value,places,commas)+"B";