Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
|
#include "DecimalFullFormatter.h"
Public Member Functions | |
UDecimalFullFormatter () | |
virtual void | OnAppendToString (const FBigInteger &number, FString &string) const override |
bool | GetUseGrouping () const |
void | SetUseGrouping (bool value) |
bool | GetAlwaysSign () const |
void | SetAlwaysSign (bool value) |
Public Member Functions inherited from UBigIntegerFormatter | |
FString | ToString (const FBigInteger &Number) const |
FString & | AppendToString (const FBigInteger &Number, UPARAM(ref) FString &String) const |
virtual int32 | GetRadix () const |
virtual void | OnAppendToString (const FBigInteger &number, FString &string) const |
Static Public Member Functions | |
static FString | ToFullString (const FBigInteger &number) |
static void | AppendFullToString (const FBigInteger &number, FString &string) |
static UDecimalFullFormatter * | GetDefault () |
Additional Inherited Members | |
Static Protected Member Functions inherited from Duke::MCultureAwareObject | |
static const FCulture & | GetCulture () |
static void | AppendPrefix (bool isNegative, const FDecimalNumberFormattingRules &rules, bool alwaysSign, FString &string) |
static void | AppendSuffix (bool isNegative, const FDecimalNumberFormattingRules &rules, bool alwaysSign, FString &string) |
static int32 | EstimateNumberLength (int32 numDecimalDigits, bool isNegative, bool alwaysSign, const FDecimalNumberFormattingRules &rules, const FNumberFormattingOptions &options) |
static int32 | EstimatePrefix (bool isNegative, const FDecimalNumberFormattingRules &rules, bool alwaysSign) |
static int32 | EstimateSuffix (bool isNegative, const FDecimalNumberFormattingRules &rules, bool alwaysSign) |
static void | ReserveSpaceForNumber (int32 numDecimalDigits, bool isNegative, bool alwaysSign, const FDecimalNumberFormattingRules &rules, const FNumberFormattingOptions &options, FString &string) |
static void | AppendAffix (bool isNegative, const FDecimalNumberFormattingRules &rules, bool alwaysSign, const FString &negative, const FString &positive, FString &string) |
static int32 | EstimateAffix (bool isNegative, const FDecimalNumberFormattingRules &rules, bool alwaysSign, const FString &negative, const FString &positive) |
Formatter for outputting full decimal numbers. Allows leading signs and group separators.
|
Flavor:Constructor |
Creates a new UDecimalFullFormatter
FF ← ff 0
|
staticFlavor:Static |
Formats the number, appending it to the provided string
number | The value to be formatted |
string | The string that the value should be formatted into |
0 ← str BF BI S&
0 ← strd BI S&
|
Flavor:Instance |
Gets whether formatted numbers are always signed
B ← gosgn FF
|
staticFlavor:Static |
Gets the default instance of this type of formatter
FF ← fmtf 0
|
Flavor:Instance |
Gets whether digit grouping is applied to formatting
B ← gogrp FF
|
overridevirtualFlavor:Instance |
Formats the number, appending it to the provided string
number | The value to be formatted |
string | The string that the value should be formatted into |
0 ← str BF BI S&
0 ← str FF BI S&
Reimplemented from UBigIntegerFormatter.
|
Flavor:Instance |
Sets whether formatted numbers are always signed
value | true if formatted numbers should always be signed, otherwise false |
0 ← sosgn FF B
|
Flavor:Instance |
Sets whether digit grouping is applied to formatting
value | true if digit grouping should applied to formatting, otherwise false |
0 ← sogrp FF B
|
staticFlavor:Static |
Formats the number into a new string in culture-aware Decimal Notation
number | The value to be formatted |
S ← strd BI