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
Duke::FMoreMath Struct Reference

#include "MoreMath.h"

Static Public Member Functions

static int32 FloorLog2 (float number)
 
static int32 FloorLog2 (double number)
 
static int32 FloorLog10 (int32 number)
 
static int32 FloorLog10 (uint32 number)
 
static int32 FloorLog10 (int64 number)
 
static int32 FloorLog10 (uint64 number)
 
static int32 FloorLog10 (float number)
 
static int32 FloorLog10 (double number)
 
static uint32 Gcd (uint32 lhs, uint32 rhs)
 
static int64 Gcd (int64 lhs, int64 rhs)
 
static uint64 Gcd (uint64 lhs, uint64 rhs)
 
static int32 Pow10Int (int32 exponent)
 
static uint32 Pow10UInt (int32 exponent)
 
static int64 Pow10Int64 (int32 exponent)
 
static uint64 Pow10UInt64 (int32 exponent)
 

Detailed Description

Provides more handy math functions that are absent from Unreal's math libraries

Member Function Documentation

◆ FloorLog10() [1/6]

static int32 Duke::FMoreMath::FloorLog10 ( double  number)
staticFlavor:Static

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
Implements Opcode:
Flavor:Static I4 ← flog10 F8

◆ FloorLog10() [2/6]

static int32 Duke::FMoreMath::FloorLog10 ( float  number)
staticFlavor:Static

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
Implements Opcode:
Flavor:Static I4 ← flog10 F4

◆ FloorLog10() [3/6]

DBN_FORCEINLINE int32 FMoreMath::FloorLog10 ( int32  number)
staticFlavor:Static

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
Implements Opcode:
Flavor:Static I4 ← flog10 I4

◆ FloorLog10() [4/6]

DBN_FORCEINLINE int32 FMoreMath::FloorLog10 ( int64  number)
staticFlavor:Static

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
Implements Opcode:
Flavor:Static I4 ← flog10 I8

◆ FloorLog10() [5/6]

static int32 Duke::FMoreMath::FloorLog10 ( uint32  number)
staticFlavor:Static

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
Implements Opcode:
Flavor:Static I4 ← flog10 U4

◆ FloorLog10() [6/6]

static int32 Duke::FMoreMath::FloorLog10 ( uint64  number)
staticFlavor:Static

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
Implements Opcode:
Flavor:Static I4 ← flog10 U8

◆ FloorLog2() [1/2]

DBN_FORCEINLINE int32 FMoreMath::FloorLog2 ( double  number)
staticFlavor:Static

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
This value is the number of decimal digits in the number minus one
Implements Opcode:
Flavor:Static I4 ← flog2 F8

◆ FloorLog2() [2/2]

DBN_FORCEINLINE int32 FMoreMath::FloorLog2 ( float  number)
staticFlavor:Static

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
This value is the number of decimal digits in the number minus one
Implements Opcode:
Flavor:Static I4 ← flog2 F4

◆ Gcd() [1/3]

static int64 Duke::FMoreMath::Gcd ( int64  lhs,
int64  rhs 
)
staticFlavor:Static

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

Parameters
lhsThe left number for which to calculate GCD
rhsThe right number for which to calculate GCD
Returns
The greatest common divisor (GCD) between two numbers.
Implements Opcode:
Flavor:Static I8 ← gcd I8 I8

◆ Gcd() [2/3]

static uint32 Duke::FMoreMath::Gcd ( uint32  lhs,
uint32  rhs 
)
staticFlavor:Static

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

Parameters
lhsThe left number for which to calculate GCD
rhsThe right number for which to calculate GCD
Returns
The greatest common divisor (GCD) between two numbers.
Implements Opcode:
Flavor:Static U4 ← gcd U4 U4

◆ Gcd() [3/3]

static uint64 Duke::FMoreMath::Gcd ( uint64  lhs,
uint64  rhs 
)
staticFlavor:Static

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

Parameters
lhsThe left number for which to calculate GCD
rhsThe right number for which to calculate GCD
Returns
The greatest common divisor (GCD) between two numbers.
Implements Opcode:
Flavor:Static U8 ← gcd U8 U8

◆ Pow10Int()

static int32 Duke::FMoreMath::Pow10Int ( int32  exponent)
staticFlavor:Static

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:Static I4 ← pw10i4 I4

◆ Pow10Int64()

static int64 Duke::FMoreMath::Pow10Int64 ( int32  exponent)
staticFlavor:Static

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:Static I8 ← pw10i8 I4

◆ Pow10UInt()

static uint32 Duke::FMoreMath::Pow10UInt ( int32  exponent)
staticFlavor:Static

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:Static U4 ← pw10u4 I4

◆ Pow10UInt64()

static uint64 Duke::FMoreMath::Pow10UInt64 ( int32  exponent)
staticFlavor:Static

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:Static U8 ← pw10u8 I4

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