table example here ... https://www.suntoday.org/sunrise-sunset/2024.html
Alain
table example here ... https://www.suntoday.org/sunrise-sunset/2024.html
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
black is my attempt at a straight line.... follows actual times fairly close enough to actual exact times. It is just adding and subtracting X minutes each day for 1/2 a year then switching the add-subtract.Just a thought: from what I understand from Amgen's and Henrik's suggestions, is that the sunrise and sunset would be roughtly linearly calculable![]()
And there's always NBit math libraries if you really wanted to do with with a PIC. I've used them a lot with PICs and PBP. The workarounds can be painful if you're dealing with >32bit numbers that could either be positive or negative as the numbers aren't signed.
Troy
Bookmarks