[ create a new paste ] login | about

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

C++, pasted on Aug 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <string>
using namespace std;

int main (int argc, char* argv[]) {
	
	double a=136.73;
	unsigned int a1=(int)(100*(a-(int)a));
	cout << setprecision(16) << (a-(int)a)<<endl;
	cout<<a1<<endl;

  return 0;
}


Output:
1
2
0.7299999999999898
72


Create a new paste based on this one


Comments: