Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moon age (days) calculation #35

Open
vdurnev opened this issue Aug 13, 2022 · 2 comments
Open

Moon age (days) calculation #35

vdurnev opened this issue Aug 13, 2022 · 2 comments

Comments

@vdurnev
Copy link

vdurnev commented Aug 13, 2022

Thank you for your work, Richard

What is the right way to calculate Moon age (Moon days) using your library?

@ELY3M
Copy link

ELY3M commented Nov 6, 2022

This is kotlin

    val moonage = 29.0 * (normalized / 360.0) + 1.0
    content += "Moon Age: " + moonage.toString()

@isomeme
Copy link

isomeme commented Nov 6, 2022

I don't code in Kotlin, but it's enough like Java that I'm reasonably confident you don't need the explicit moonage.toString(). Simplifying a bit, you can think of string concatenation terms all being wrapped in an implicit String.valueOf(x) call.

What is the precise definition of Moon age/days here? I'm not familiar with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants