I am doing a little project where I am trying to make a sunrise/sunset calculator using the equations on here:
Sunrise equation - Wikipedia, the free encyclopedia
In the 'complete calculation' part, there is a formula for Julian cycle where you calculate a value and then round it. I was wondering - how do you do this round(n*) function in C++? Is it the same as calculating n* and then just storing it as in integer?