Skip to content

Commit a78a016

Browse files
committed
Updated MediumDec summary info
1 parent 92d7509 commit a78a016

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

GlobalCode/AltNum/MediumDec.hpp

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,25 @@
2222
#include <cmath>
2323
#include "..\OtherFunctions\VariableConversionFunctions.h"
2424

25-
//#include <boost/math/tools/roots.hpp>
2625
#include <boost/rational.hpp>
2726
#include <boost/multiprecision/cpp_int.hpp>
2827

2928
namespace BlazesRusCode
3029
{
31-
//class UInt128 : boost::multiprecision::checked_uint128_t
32-
//{};
33-
34-
class MediumDec;//Operations and functions will mess up if IntValue overflows/underflows or reaches exactly -2147483648 which is used to represent negative zero when has decimal values
30+
class MediumDec;
3531

3632
/// <summary>
37-
/// Alternative Non-Integer number representation with focus on accuracy and partially speed within certain range
38-
/// Represents +- 2147483647.999999999 with 100% consistency of accuracy for most operations as long as don't get too small
39-
// Use AltDec instead if want to use variant of this class that supports radical representation to save some extra precision
33+
/// Represents +- 2147483647.999999999 with:
34+
/// * 100% consistency of accuracy for all integer value multiplication operations.
35+
/// * 100% consistency of accuracy for addition/subtraction operations within 9th decimal place of representation.
36+
/// * Partial but still high accuracy for non-integer representation variations of multiplication because of truncation
37+
/// (values get lost if get too small)
38+
/// * Partial but still high accuracy for division because of truncation
39+
/// (values get lost if get too small)
40+
/// * Other operations like Ln and Sqrt contained with decent level of accuracy
41+
/// (still loses a little accuracy because of truncation etc)
42+
/// * Operations and functions will mess up if IntValue overflows/underflows
43+
/// or reaches exactly -2147483648 which is used to represent negative zero when it has decimal values
4044
/// (8 bytes worth of Variable Storage inside class for each instance)
4145
/// </summary>
4246
class DLL_API MediumDec

0 commit comments

Comments
 (0)