![]() |
Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
|
#include "DecimalScalingFormatter.h"
Public Member Functions | |
| UDecimalScalingFormatter () | |
| virtual void | OnAppendToString (const FBigInteger &number, FString &string) const override |
| bool | GetUseGrouping () const |
| void | SetUseGrouping (bool value) |
| bool | GetAlwaysSign () const |
| void | SetAlwaysSign (bool value) |
| int32 | GetMinimumPowerAllowed () const |
| void | SetMinimumPowerAllowed (int32 value) |
| int32 | GetMaximumPowerAllowed () const |
| void | SetMaximumPowerAllowed (int32 value) |
| int32 | GetScaleGranularity () const |
| void | SetScaleGranularity (int32 value) |
| const UGroupLabeler * | GetGroupLabeler () const |
| void | SetGroupLabeler (const UGroupLabeler *value) |
| const UBigIntegerFormatter * | GetFallbackFormatter () const |
| void | SetFallbackFormatter (const UBigIntegerFormatter *value) |
| int32 | GetMinimumFractionalDigits () const |
| ** | |
| void | SetMinimumFractionalDigits (int32 value) |
| int32 | GetMaximumFractionalDigits () const |
| void | SetMaximumFractionalDigits (int32 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 |
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) |
Formats a number as a scaled value, with a mantissa and a power of ten displayed as a group label.
|
Flavor:Constructor |
Creates a new instance of a UDecimalScalingFormatter
SF ← sf 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 ← strse BI S&
|
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 ← strsn BI S&
|
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 ← strss BI S&
|
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 ← strsmn BI S&
|
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 ← strsms BI S&
|
Flavor:Instance |
Gets whether formatted numbers are always signed
B ← gosgn SF
|
staticFlavor:Static |
Gets the default engineering instance of this type of formatter
SF ← fmtse 0
|
staticFlavor:Static |
Gets the default named scaling instance of this type of formatter
SF ← fmtsn 0
|
staticFlavor:Static |
Gets the default scientific instance of this type of formatter
SF ← fmtss 0
|
staticFlavor:Static |
Gets the default SI unit names instance of this type of formatter
SF ← fmtsmn 0
|
staticFlavor:Static |
Gets the default SI unit symbols instance of this type of formatter
SF ← fmtsms 0
|
Flavor:Instance |
Gets the Formatter that is used when the number falls outside of the handled scale range.
BF ← goff SF
|
Flavor:Instance |
Gets the Group Labeler that is used to generate the scaled group names.
BG ← goglb SF
|
Flavor:Instance |
Gets the maxnimum number of fractional digits used when formatting the number
I4 ← gohfd SF
|
Flavor:Instance |
Gets the maximum power of ten allowed to engage this scale mode.
I4 ← gohds SF
|
Flavor:Instance |
**
** Gets the minimum number of fractional digits used when formatting the number
I4 ← golfd SF
|
Flavor:Instance |
Gets the minimum power of ten allowed to engage this scale mode.
I4 ← golds SF
|
Flavor:Instance |
Gets the granularity of the scale in powers of ten.
I4 ← goscg SF
|
Flavor:Instance |
Gets whether digit grouping is applied to formatting
B ← gogrp SF
|
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 SF 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 SF B
|
Flavor:Instance |
Sets the Formatter that is used when the number falls outside of the handled scale range. This must always be set to a valid object.
| value | the Formatter that is used when the number falls outside of the handled scale range. |
0 ← soff SF BF
|
Flavor:Instance |
Sets the Group Labeler that is used to generate the scaled group names. This must always be set to a valid object.
| value | the Group Labeler that is used to generate the scaled group names. |
0 ← soglb SF BG
|
Flavor:Instance |
Sets the maxnimum number of fractional digits used when formatting the number
| value | the maxnimum number of fractional digits used when formatting the number |
0 ← sohfd SF I4
|
Flavor:Instance |
Sets the maximum power of ten allowed to engage this scale mode.
| value | the maximum power of ten allowed to engage this scale mode. |
0 ← gohds SF I4
|
Flavor:Instance |
Sets the minimum number of fractional digits used when formatting the number
| value | the minimum number of fractional digits used when formatting the number |
0 ← solfd SF I4
|
Flavor:Instance |
Sets the minimum power of ten allowed to engage this scale mode.
| value | the minimum power of ten allowed to engage this scale mode. |
0 ← solds SF I4
|
Flavor:Instance |
Sets the granularity of the scale in powers of ten.
| value | the granularity of the scale in powers of ten. |
0 ← soscg SF I4
|
Flavor:Instance |
Sets whether digit grouping is applied to formatting
| value | true if digit grouping should applied to formatting, otherwise false |
0 ← sogrp SF B
|
staticFlavor:Static |
Formats the number into a new string in Engineering Notation
| number | The value to be formatted |
S ← strse BI
|
staticFlavor:Static |
Formats the number into a new string in Named Notation
| number | The value to be formatted |
S ← strsn BI
|
staticFlavor:Static |
Formats the number into a new string in Scientific Notation
| number | The value to be formatted |
S ← strss BI
|
staticFlavor:Static |
Formats the number into a new string in SI Name Notation
| number | The value to be formatted |
S ← strsmn BI
|
staticFlavor:Static |
Formats the number into a new string in SI Symbol Notation
| number | The value to be formatted |
S ← strsms BI