Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
|
#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) |
Provides more handy math functions that are absent from Unreal's math libraries
|
staticFlavor:Static |
Gets the integral floor of the base 10 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog10 F8
|
staticFlavor:Static |
Gets the integral floor of the base 10 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog10 F4
|
staticFlavor:Static |
Gets the integral floor of the base 10 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog10 I4
|
staticFlavor:Static |
Gets the integral floor of the base 10 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog10 I8
|
staticFlavor:Static |
Gets the integral floor of the base 10 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog10 U4
|
staticFlavor:Static |
Gets the integral floor of the base 10 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog10 U8
|
staticFlavor:Static |
Gets the integral floor of the base 2 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog2 F8
|
staticFlavor:Static |
Gets the integral floor of the base 2 logarithm of the number.
number | The number for which to compute the logarithm |
I4 ← flog2 F4
|
staticFlavor:Static |
Gets the greatest common divisor (GCD) between two numbers.
lhs | The left number for which to calculate GCD |
rhs | The right number for which to calculate GCD |
I8 ← gcd I8 I8
|
staticFlavor:Static |
Gets the greatest common divisor (GCD) between two numbers.
lhs | The left number for which to calculate GCD |
rhs | The right number for which to calculate GCD |
U4 ← gcd U4 U4
|
staticFlavor:Static |
Gets the greatest common divisor (GCD) between two numbers.
lhs | The left number for which to calculate GCD |
rhs | The right number for which to calculate GCD |
U8 ← gcd U8 U8
|
staticFlavor:Static |
Returns powers of 10 for the range possible in the destination type;
exponent | The power of 10 to return |
I4 ← pw10i4 I4
|
staticFlavor:Static |
Returns powers of 10 for the range possible in the destination type;
exponent | The power of 10 to return |
I8 ← pw10i8 I4
|
staticFlavor:Static |
Returns powers of 10 for the range possible in the destination type;
exponent | The power of 10 to return |
U4 ← pw10u4 I4
|
staticFlavor:Static |
Returns powers of 10 for the range possible in the destination type;
exponent | The power of 10 to return |
U8 ← pw10u8 I4