Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
|
#include "IeeeHelper.h"
Static Public Member Functions | |
static double | MakeFloat (int32 sign, int32 exponent, uint32 mantissa) |
static double | MakeDouble (int32 sign, int32 exponent, uint64 mantissa) |
static void | BreakDouble (double number, int32 &sign, int32 &exponent, uint64 &mantissa) |
static void | BreakFloat (float number, int32 &sign, int32 &exponent, uint32 &mantissa) |
static int32 | GetExponent (float number) |
static int32 | GetExponent (double number) |
Provides helper methods for building/extracting float/double types to/from their components
|
staticFlavor:Static |
Gets a component sign, exponent, and mantissa parts from a double.
number | The number to get component parts from |
sign | On return, contains the sign of the number (0 positive, -1 negative) |
exponent | On return, contains the base 2 exponent of the number |
mantissa | On return, contains the base 2 mantissa of the number |
0 ← brkf8 F8 I4& I4& U8&
|
staticFlavor:Static |
Gets a component sign, exponent, and mantissa parts from a float
number | The number to get component parts from |
sign | On return, contains the sign of the number (0 positive, -1 negative) |
exponent | On return, contains the base 2 exponent of the number |
mantissa | On return, contains the base 2 mantissa of the number |
0 ← brkf4 F4 I4& I4& U4&
|
staticFlavor:Static |
Gets the exponent part from a number
number | The number to get component parts from |
I4 ← fexp F8
|
staticFlavor:Static |
Gets the exponent part from a number
number | The number to get component parts from |
I4 ← fexp F4
|
staticFlavor:Static |
Builds a double from component sign, exponent, and mantissa parts.
sign | The sign of the number (>=0 positive, <0 negative) |
exponent | The base 2 exponent of the number |
mantissa | The base 2 mantissa of the number |
F8 ← makef8 I4 I4 U8
|
staticFlavor:Static |
Builds a float from component sign, exponent, and mantissa parts.
sign | The sign of the number (>=0 positive, <0 negative) |
exponent | The base 2 exponent of the number |
mantissa | The base 2 mantissa of the number |
F4 ← makef4 I4 I4 U4