Augustus 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends | List of all members
LLDouble Class Reference

This class implements a double object with a very large range. More...

#include <lldouble.hh>

Public Member Functions

 LLDouble (float x=0.0)
 
 LLDouble (double d)
 
 LLDouble (long double d)
 
 LLDouble (int i)
 
 LLDouble (long i)
 
long double doubleValue ()
 
string toString (int precision=output_precision, fmtflags flags=ios::dec) const
 
LLDoubleoperator+= (const LLDouble &other)
 
LLDoubleoperator-= (const LLDouble &other)
 
LLDoubleoperator*= (const LLDouble &other)
 
LLDoubleoperator/= (const LLDouble &other)
 
LLDouble operator+ (const LLDouble &other) const
 
LLDouble operator- (const LLDouble &other) const
 
LLDouble operator* (const LLDouble &other) const
 
LLDouble operator/ (const LLDouble &other) const
 
LLDouble abs () const
 
bool operator== (const LLDouble &other) const
 
bool operator> (const LLDouble &other) const
 
bool operator!= (const LLDouble &other) const
 
bool operator< (const LLDouble &other) const
 
bool operator<= (const LLDouble &other) const
 
bool operator>= (const LLDouble &other) const
 
LLDouble pow (double x) const
 
LLDouble getRoot (int r) const
 
double log () const
 
double log (int otherbase) const
 
LLDouble heated ()
 

Static Public Member Functions

static LLDouble exp (double x)
 
static LLDouble pow (const LLDouble &lld, double x)
 
static LLDouble getMaxDouble ()
 
static LLDouble getMinDouble ()
 
static void setOutputPrecision (int p)
 
static int getOutputPrecision ()
 
static LLDouble infinity ()
 
static void setTemperature (unsigned t)
 

Friends

LLDouble operator- (const LLDouble &dbl)
 
LLDouble abs (const LLDouble &dbl)
 
double log (const LLDouble &lld)
 
double log (int otherbase, const LLDouble &lld)
 
istream & operator>> (istream &in, LLDouble &lld)
 
ostream & operator<< (ostream &out, const LLDouble &lld)
 

Detailed Description

This class implements a double object with a very large range.

It is designed to handle very small (or high) floating point numbers that would otherwise become zero when multiplied to each other.

Author
Emmanouil Stafilarakis
Mario Stanke

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