EconomicIndicatorsPage

This commit is contained in:
2025-11-21 14:16:00 -05:00
parent b10ab4b7bd
commit 92bd70045b
3 changed files with 54 additions and 8 deletions

View File

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