[ create a new paste ] login | about

Link: http://codepad.org/3FeEC9t2    [ raw code | output | fork ]

jiangtanghu - C++, pasted on Jan 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
check the maxinum values of double type
used in blog
http://www.jiangtanghu.com/blog/2011/01/22/big-numbers/
*/

#include <iostream>
#include <cfloat>

using namespace std;

int main()
{
  cout<<"maxinum double value of machine: "<<DBL_MAX<<endl;
  return 0;

}


Output:
1
maxinum double value of machine: 1.79769e+308


Create a new paste based on this one


Comments: