Simple 2 second question.

How would I write 6.673*10^-8 in code?
It is a gravitational constant in one of my programs..
I have somewhat an idea on how to code it, but i'm not sure.
I would really appreciate a second opinion.
Please really simple . Anyone?
const float g = 6.673e-8;


"floating point numbers" http://www.cplusplus.com/doc/tutorial/constants/
"Fundamental data types" http://www.cplusplus.com/doc/tutorial/variables/
Wow thanks you so much. References really help! I bookmarked them lol
:D
Topic archived. No new replies allowed.