Could someone convert a little c maths code for me

Miscellaneous Forums/General Discussion/Could someone convert a little c maths code for me

Sorry that was just an oversight. It's not the problem though. Is everything else there correct?