示例#1
0
 public FNumberFormattingOptions(FAssetArchive Ar)
 {
     AlwaysSign              = Ar.ReadBoolean();
     UseGrouping             = Ar.ReadBoolean();
     RoundingMode            = Ar.Read <ERoundingMode>();
     MinimumIntegralDigits   = Ar.Read <int>();
     MaximumIntegralDigits   = Ar.Read <int>();
     MinimumFractionalDigits = Ar.Read <int>();
     MaximumFractionalDigits = Ar.Read <int>();
 }
示例#2
0
 public FNumberFormattingOptions()
 {
     AlwaysSign              = false;
     UseGrouping             = true;
     RoundingMode            = ERoundingMode.HalfToEven;
     MinimumIntegralDigits   = 1;
     MaximumIntegralDigits   = _DBL_MAX_10_EXP + _DBL_DIG + 1;
     MinimumFractionalDigits = 0;
     MaximumFractionalDigits = 3;
 }
示例#3
0
/// <summary>Converts a passed in float to a text, formatted as a percent</summary>
        public static string AsPercent_Float(float Value, ERoundingMode RoundingMode, bool bUseGrouping = true, int MinimumIntegralDigits = 1, int MaximumIntegralDigits = 324, int MinimumFractionalDigits = 0, int MaximumFractionalDigits = 3)
        {
            string ___ret = AsPercent_Float(IntPtr.Zero, Value, (int)RoundingMode, bUseGrouping?1:0, MinimumIntegralDigits, MaximumIntegralDigits, MinimumFractionalDigits, MaximumFractionalDigits);

            return(___ret);
        }
示例#4
0
/// <summary>Converts a passed in integer to a text formatted as a currency</summary>
        public static string AsCurrency_Integer(int Value, ERoundingMode RoundingMode, bool bUseGrouping = true, int MinimumIntegralDigits = 1, int MaximumIntegralDigits = 324, int MinimumFractionalDigits = 0, int MaximumFractionalDigits = 3, string CurrencyCode = default(string))
        {
            string ___ret = AsCurrency_Integer(IntPtr.Zero, Value, (int)RoundingMode, bUseGrouping?1:0, MinimumIntegralDigits, MaximumIntegralDigits, MinimumFractionalDigits, MaximumFractionalDigits, CurrencyCode);

            return(___ret);
        }
示例#5
0
 /// <summary>Converts a passed in float to a text based on formatting options</summary>
 public extern static FText Conv_FloatToText(float Value, ERoundingMode RoundingMode, bool bUseGrouping = true, int MinimumIntegralDigits = 1, int MaximumIntegralDigits = 324, int MinimumFractionalDigits = 0, int MaximumFractionalDigits = 3);
示例#6
0
 /// <summary>Converts a passed in integer to a text formatted as a currency</summary>
 public extern static FText AsCurrency_Integer(int Value, ERoundingMode RoundingMode, bool bUseGrouping = true, int MinimumIntegralDigits = 1, int MaximumIntegralDigits = 324, int MinimumFractionalDigits = 0, int MaximumFractionalDigits = 3, FString CurrencyCode = default(FString));