Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
Loading...
Searching...
No Matches
UMoreMathLibrary Class Reference

#include "MoreMathLibrary.h"

Static Public Member Functions

static int32 FloorLog2_Float (float Number)
 
static int32 FloorLog2_Double (double Number)
 
static int32 FloorLog10_Integer (int32 Number)
 
static int32 FloorLog10_Integer64 (int64 Number)
 
static int32 FloorLog10_Float (float Number)
 
static int32 FloorLog10_Double (double Number)
 
static int32 Gcd_IntegerInteger (int32 A, const int32 B)
 
static int64 Gcd_Integer64Integer64 (int64 A, const int64 B)
 
static int32 Pow10Int_Int (int32 Exponent)
 
static int64 Pow10Int64_Int (int32 Exponent)
 

Detailed Description

Provides Blueprintable access to more math functions not included in or not exposed by Unreeal

Member Function Documentation

◆ FloorLog10_Double()

DBN_FORCEINLINE int32 UMoreMathLibrary::FloorLog10_Double ( double  Number)
staticFlavor:Blueprint

Gets the integral floor of the base 10 logarithm of the number.

Parameters
NumberThe number for which to compute the logarithm
Returns
The floor of the base 10 logarithm of the number
Note
This value is the number of decimal digits in the number minus one
Returns zero if number is not positive
Implements Opcode:
Flavor:Blueprint I4 ← flog10 F8

◆ FloorLog10_Float()

DBN_FORCEINLINE int32 UMoreMathLibrary::FloorLog10_Float ( float  Number)
staticFlavor:Blueprint

Gets the integral floor of the base 10 logarithm of the number.

Parameters
NumberThe number for which to compute the logarithm
Returns
The floor of the base 10 logarithm of the number
Note
This value is the number of decimal digits in the number minus one
Returns zero if number is not positive
Implements Opcode:
Flavor:Blueprint I4 ← flog10 F4

◆ FloorLog10_Integer()

DBN_FORCEINLINE int32 UMoreMathLibrary::FloorLog10_Integer ( int32  Number)
staticFlavor:Blueprint

Gets the integral floor of the base 10 logarithm of the number.

Parameters
NumberThe number for which to compute the logarithm
Returns
The floor of the base 10 logarithm of the number
Note
This value is the number of decimal digits in the number minus one
Returns zero if number is not positive
Implements Opcode:
Flavor:Blueprint I4 ← flog10 I4

◆ FloorLog10_Integer64()

DBN_FORCEINLINE int32 UMoreMathLibrary::FloorLog10_Integer64 ( int64  Number)
staticFlavor:Blueprint

Gets the integral floor of the base 10 logarithm of the number.

Parameters
NumberThe number for which to compute the logarithm
Returns
The floor of the base 10 logarithm of the number
Note
This value is the number of decimal digits in the number minus one
Returns zero if number is not positive
Implements Opcode:
Flavor:Blueprint I4 ← flog10 I8

◆ FloorLog2_Double()

DBN_FORCEINLINE int32 UMoreMathLibrary::FloorLog2_Double ( double  Number)
staticFlavor:Blueprint

Gets the integral floor of the base 2 logarithm of the number.

Parameters
NumberThe number for which to compute the logarithm
Returns
The floor of the base 2 logarithm of the number
Note
Returns zero if number is not positive
Implements Opcode:
Flavor:Blueprint I4 ← flog2 F8

◆ FloorLog2_Float()

DBN_FORCEINLINE int32 UMoreMathLibrary::FloorLog2_Float ( float  Number)
staticFlavor:Blueprint

Gets the integral floor of the base 2 logarithm of the number.

Parameters
NumberThe number for which to compute the logarithm
Returns
The floor of the base 2 logarithm of the number
Note
Returns zero if number is not positive
Implements Opcode:
Flavor:Blueprint I4 ← flog2 F4

◆ Gcd_Integer64Integer64()

DBN_FORCEINLINE int64 UMoreMathLibrary::Gcd_Integer64Integer64 ( int64  A,
const int64  B 
)
staticFlavor:Blueprint

Gets the greatest common divisor (GCD) between two numbers.

Parameters
AThe number for which to calculate GCD
BThe number for which to calculate GCD
Returns
The greatest common divisor (GCD) between two numbers.
Implements Opcode:
Flavor:Blueprint I8 ← gcd I8 I8

◆ Gcd_IntegerInteger()

DBN_FORCEINLINE int32 UMoreMathLibrary::Gcd_IntegerInteger ( int32  A,
const int32  B 
)
staticFlavor:Blueprint

Gets the greatest common divisor (GCD) between two numbers.

Parameters
AThe number for which to calculate GCD
BThe number for which to calculate GCD
Returns
The greatest common divisor (GCD) between two numbers.
Implements Opcode:
Flavor:Blueprint I4 ← gcd I4 I4
Note
this forwards to Unreal's internal FMath::GreatestCommonDivisor() method, which is not exposed to blueprints as of UE5.1

◆ Pow10Int64_Int()

DBN_FORCEINLINE int64 UMoreMathLibrary::Pow10Int64_Int ( int32  Exponent)
staticFlavor:Blueprint

Returns powers of 10 for the range possible in the destination type;

Parameters
ExponentThe power of 10 to return
Returns
The power of 10. if exponent less than zero, zero is returned. On overflow, max value is returned.
Implements Opcode:
Flavor:Blueprint I8 ← pw10i8 I4

◆ Pow10Int_Int()

DBN_FORCEINLINE int32 UMoreMathLibrary::Pow10Int_Int ( int32  Exponent)
staticFlavor:Blueprint

Returns powers of 10 for the range possible in the destination type;

Parameters
ExponentThe power of 10 to return
Returns
The power of 10. if exponent less than zero, zero is returned. On overflow, max value is returned.
Implements Opcode:
Flavor:Blueprint I4 ← pw10i4 I4

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