int to float c++

C++
int a = 3;
float b = (float)a;
Source

Also in C++: