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"
"Fundamental data types"
Wow thanks you so much. References really help! I bookmarked them lol
Topic archived. No new replies allowed.