[ create a new paste ] login | about

Link: http://codepad.org/HhGwTFhw    [ 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<<(a-(int)a)<<endl;
	cout<<a1<<endl;

  return 0;
}


Output:
1
2
0.73
72


Create a new paste based on this one


Comments: