mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 01:20:24 +08:00
18 lines
375 B
C++
18 lines
375 B
C++
// we want to make sure that we are using the doubleRep class with DOUBLEREP enabled.
|
|
#define DOUBLEREP t
|
|
#include "../doubleRep.cpp"
|
|
|
|
|
|
int main()
|
|
{
|
|
double d=5.352e-30;
|
|
doubleRep k;
|
|
k= d;
|
|
k.output(cout);cout<<endl;
|
|
cout << k.mantissa() <<" "<< k.expon() <<endl<<endl;
|
|
|
|
cout <<"as double "<<d<<endl;
|
|
cout <<"as doubleRep "<<convert(k)<<endl;
|
|
return(0);
|
|
}
|