Space Engineers
Static Public Member Functions | List of all members
VRage.Utils.MyValueFormatter Class Reference

Static Public Member Functions

static string GetFormatedFloat (float num, int decimalDigits)
 
static string GetFormatedFloat (float num, int decimalDigits, string groupSeparator)
 
static string GetFormatedDouble (double num, int decimalDigits)
 
static string GetFormatedQP (decimal num)
 
static string GetFormatedDecimal (decimal num, int decimalDigits)
 
static string GetFormatedGameMoney (decimal num)
 
static decimal GetDecimalFromString (string number, int decimalDigits)
 
static float GetFloatFromString (string number, int decimalDigits, string groupSeparator)
 
static string GetFormatedLong (long l)
 
static String GetFormatedDateTimeOffset (DateTimeOffset dt)
 
static String GetFormatedDateTime (DateTime dt)
 
static String GetFormatedDateTimeForFilename (DateTime dt)
 
static string GetFormatedPriceEUR (decimal num)
 
static string GetFormatedPriceUSD (decimal num)
 
static string GetFormatedPriceUSD (decimal priceInEur, decimal exchangeRateEurToUsd)
 
static string GetFormatedInt (int i)
 
static string GetFormatedArray< T > (T[] array)
 
static void AppendFormattedValueInBestUnit (float value, string[] unitNames, float[] unitMultipliers, int unitDecimalDigits, StringBuilder output)
 
static void AppendFormattedValueInBestUnit (float value, string[] unitNames, float[] unitMultipliers, int[] unitDecimalDigits, StringBuilder output)
 
static void AppendGenericInBestUnit (float genericInBase, StringBuilder output)
 
static void AppendGenericInBestUnit (float genericInBase, int numDecimals, StringBuilder output)
 
static void AppendForceInBestUnit (float forceInNewtons, StringBuilder output)
 
static void AppendTorqueInBestUnit (float torqueInNewtonMeters, StringBuilder output)
 
static void AppendWorkInBestUnit (float workInMegaWatts, StringBuilder output)
 
static void AppendWorkHoursInBestUnit (float workInMegaWatts, StringBuilder output)
 
static void AppendTimeInBestUnit (float timeInSeconds, StringBuilder output)
 
static void AppendWeightInBestUnit (float weightInKG, StringBuilder output)
 
static void AppendVolumeInBestUnit (float volumeInCubicMeters, StringBuilder output)
 
static void AppendTimeExact (int timeInSeconds, StringBuilder output)
 
static void AppendTimeExactMinSec (int timeInSeconds, StringBuilder output)
 
static void AppendDistanceInBestUnit (float distanceInMeters, StringBuilder output)
 

Detailed Description

Definition at line 9 of file MyValueFormatter.cs.

Member Function Documentation

static void VRage.Utils.MyValueFormatter.AppendDistanceInBestUnit ( float  distanceInMeters,
StringBuilder  output 
)
inlinestatic

Definition at line 288 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendForceInBestUnit ( float  forceInNewtons,
StringBuilder  output 
)
inlinestatic

Definition at line 210 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendFormattedValueInBestUnit ( float  value,
string[]  unitNames,
float[]  unitMultipliers,
int  unitDecimalDigits,
StringBuilder  output 
)
inlinestatic

Definition at line 153 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendFormattedValueInBestUnit ( float  value,
string[]  unitNames,
float[]  unitMultipliers,
int[]  unitDecimalDigits,
StringBuilder  output 
)
inlinestatic

Definition at line 171 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendGenericInBestUnit ( float  genericInBase,
StringBuilder  output 
)
inlinestatic

Definition at line 197 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendGenericInBestUnit ( float  genericInBase,
int  numDecimals,
StringBuilder  output 
)
inlinestatic

Definition at line 202 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendTimeExact ( int  timeInSeconds,
StringBuilder  output 
)
inlinestatic

Definition at line 263 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendTimeExactMinSec ( int  timeInSeconds,
StringBuilder  output 
)
inlinestatic

Definition at line 278 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendTimeInBestUnit ( float  timeInSeconds,
StringBuilder  output 
)
inlinestatic

Definition at line 242 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendTorqueInBestUnit ( float  torqueInNewtonMeters,
StringBuilder  output 
)
inlinestatic

Definition at line 218 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendVolumeInBestUnit ( float  volumeInCubicMeters,
StringBuilder  output 
)
inlinestatic

Definition at line 258 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendWeightInBestUnit ( float  weightInKG,
StringBuilder  output 
)
inlinestatic

Definition at line 250 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendWorkHoursInBestUnit ( float  workInMegaWatts,
StringBuilder  output 
)
inlinestatic

Definition at line 234 of file MyValueFormatter.cs.

static void VRage.Utils.MyValueFormatter.AppendWorkInBestUnit ( float  workInMegaWatts,
StringBuilder  output 
)
inlinestatic

Definition at line 226 of file MyValueFormatter.cs.

static decimal VRage.Utils.MyValueFormatter.GetDecimalFromString ( string  number,
int  decimalDigits 
)
inlinestatic

Definition at line 61 of file MyValueFormatter.cs.

static float VRage.Utils.MyValueFormatter.GetFloatFromString ( string  number,
int  decimalDigits,
string  groupSeparator 
)
inlinestatic

Definition at line 75 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedArray< T > ( T[]  array)
inlinestatic

Definition at line 142 of file MyValueFormatter.cs.

static String VRage.Utils.MyValueFormatter.GetFormatedDateTime ( DateTime  dt)
inlinestatic

Definition at line 106 of file MyValueFormatter.cs.

static String VRage.Utils.MyValueFormatter.GetFormatedDateTimeForFilename ( DateTime  dt)
inlinestatic

Definition at line 111 of file MyValueFormatter.cs.

static String VRage.Utils.MyValueFormatter.GetFormatedDateTimeOffset ( DateTimeOffset  dt)
inlinestatic

Definition at line 101 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedDecimal ( decimal  num,
int  decimalDigits 
)
inlinestatic

Definition at line 50 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedDouble ( double  num,
int  decimalDigits 
)
inlinestatic

Definition at line 39 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedFloat ( float  num,
int  decimalDigits 
)
inlinestatic

Definition at line 22 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedFloat ( float  num,
int  decimalDigits,
string  groupSeparator 
)
inlinestatic

Definition at line 29 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedGameMoney ( decimal  num)
inlinestatic

Definition at line 56 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedInt ( int  i)
inlinestatic

Definition at line 135 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedLong ( long  l)
inlinestatic

Definition at line 95 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedPriceEUR ( decimal  num)
inlinestatic

Definition at line 117 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedPriceUSD ( decimal  num)
inlinestatic

Definition at line 123 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedPriceUSD ( decimal  priceInEur,
decimal  exchangeRateEurToUsd 
)
inlinestatic

Definition at line 130 of file MyValueFormatter.cs.

static string VRage.Utils.MyValueFormatter.GetFormatedQP ( decimal  num)
inlinestatic

Definition at line 45 of file MyValueFormatter.cs.


The documentation for this class was generated from the following file: