Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
|
#include "ScientificGroupLabeler.h"
Public Member Functions | |
UScientificGroupLabeler () | |
bool | GetUseGrouping () const |
void | SetUseGrouping (bool value) |
bool | GetAlwaysSign () const |
void | SetAlwaysSign (bool value) |
int | OnAppendGroupLabel (int32 powerOfTen, FString &string) const override |
Public Member Functions inherited from UGroupLabeler | |
FString | GetGroupLabel (int32 powerOfTen) const |
FString & | AppendGroupLabel (int32 PowerOfTen, UPARAM(ref) FString &AppendTo, int32 &Remainder) const |
virtual int32 | OnAppendGroupLabel (int32 powerOfTen, FString &string) const |
FString | GetSeparatorBefore () const |
void | SetSeparatorBefore (const FString &value) |
Static Public Member Functions | |
static FString | GetScientificGroupLabel (int32 powerOfTen) |
static int | AppendScientificGroupLabel (int32 powerOfTen, FString &string) |
static UScientificGroupLabeler * | 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) |
Protected Attributes inherited from UGroupLabeler | |
FString | SeparatorBefore |
Formats powers of ten using Scientific Notation (aka "e" notation, i.e. the "e309" in 10e309)
|
Flavor:Constructor |
Creates a new Scientific Notation Group Labeler
SG ← sg 0
|
staticFlavor:Static |
Provides implementation for appending the group label for the specified powerOfTen into string, and returning any remaining power of ten.
powerOfTen | The power of ten for which to get the label |
string | The string to append the group label to |
I4 ← lbl BG I4 S&
I4 ← lbls I4 S&
|
Flavor:Instance |
Gets whether formatted exponents are always signed
B ← gosgn SG
|
staticFlavor:Static |
Gets the default instance of this type of group labeler
SG ← glbls 0
|
staticFlavor:Static |
Gets the group label for the specified powerOfTen
powerOfTen | The power of ten for which to get the label |
S ← lbl BG I4
S ← lbls I4
|
Flavor:Instance |
Gets whether digit grouping is applied to formatting for the exponent
B ← gogrp SG
|
overridevirtualFlavor:Instance |
Provides implementation for appending the group label for the specified powerOfTen into string, and returning any remaining power of ten.
powerOfTen | The power of ten for which to get the label |
string | The string to append the group label to |
I4 ← lbl BG I4 S&
I4 ← lbl SG I4 S&
Reimplemented from UGroupLabeler.
|
Flavor:Instance |
Sets whether formatted exponents are always signed
value | true if formatted exponents are always signed, otherwise false |
0 ← sosgn SG B
|
Flavor:Instance |
Sets whether digit grouping is applied to formatting for the exponent
value | true if digit grouping is applied to formatting for the exponent, otherwise false |
0 ← sogrp SG B