Why does the following code output 5 and 10, when it is supposed to output 5 and 10.2...

Code:
#include<iostream>
 
class ex
{
	int i,float j;

public:
	ex(int ii,float jj)
	{
		i=ii; j=jj;
	}
	void display()
	{
		std::cout<<i<<std::endl<<j<<std::endl;
	}
};
void main()
{
	ex e(5,10.2);
	e.display();	
}