Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Pls. Help... Calculation

Featured Replies

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

what does normalize do (perform the calculation)

and

What does JD stand for Julien Date (current date?)

It's hard to say what "normalize" means without the context (surely there's a definition in the source code?).

Since I have done a similar calculation here, I am guessing it would be Mod().

  • Author

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...

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

Or simply Mod ( v ; 1 ).

BTW, in Filemaker, v - Floor ( v ) cannot be negative.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.