Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Pls. Help... Calculation


This topic is 6590 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

How to calculate this in FileMaker:

% calculate moon's age in days

IP }:|= normalize( ( JD - 2451550.1 ) / 29.530588853 )

AG := IP*29.53

What is substitute calculation for [color:red]NORMALIZE in FileMaker ?

:qwery: Ino

Posted

Like to calculate some info about Moon.

Info find on the web (see att. file).

I don’t now for which computer language is written, but I like to put calculation in fileMaker format.

Ino

Moon.zip

  • 2 weeks later...
Posted (edited)

The definition of the normalize function is given in your file:

% normalize values to range 0...1

function normalize( v  real ) : real

    v := v - floor( v ) 

    if v < 0 then

        v := v + 1

    end if

    return v

end function



So you could use this:



Let(v1=v-floor(v);case(v1<0;v1+1;v1))

Edited by Guest
Needed code tags to prevent garbled text

This topic is 6590 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.