Search found 3 matches

by het.oosten
Sat Jan 14, 2017 8:41 am
Forum: General Discussion and Questions
Topic: Calculating with high precicion
Replies: 6
Views: 4534

Re: Calculating with high precicion

Thanks again! I was using this for calculating sunset and sunrise (for streetlights). Reading all this I think it is much better to make a dictionary with sunset/sunrise times on my pc for one year, and use that instead (using Ephem). I understood there are some variations per year, but there is no ...
by het.oosten
Fri Jan 13, 2017 7:09 pm
Forum: General Discussion and Questions
Topic: Calculating with high precicion
Replies: 6
Views: 4534

Re: Calculating with high precicion

Thank you for the reply!

When I add the calculation to a variable. Will the real value be used on further calculations or the rounded value?
by het.oosten
Fri Jan 13, 2017 3:10 pm
Forum: General Discussion and Questions
Topic: Calculating with high precicion
Replies: 6
Views: 4534

Calculating with high precicion

Sorry if this is a basic question, but I cannot find the solution On a Lopy I am trying to do a calculation. I noticed when using a big number, the amount of digits behind the dot are capped off: Python: (77.04876/360)+2451545 result 2451545.2140243333 Micropython: (77.04876/360)+2451545 result 2451...