Cleanup some items.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user