ino Posted October 29, 2006 Posted October 29, 2006 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
Stuart Taylor Posted October 29, 2006 Posted October 29, 2006 what does normalize do (perform the calculation) and What does JD stand for Julien Date (current date?)
comment Posted October 29, 2006 Posted October 29, 2006 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().
ino Posted October 29, 2006 Author Posted October 29, 2006 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
BobWeaver Posted November 7, 2006 Posted November 7, 2006 (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 November 7, 2006 by Guest Needed code tags to prevent garbled text
comment Posted November 7, 2006 Posted November 7, 2006 Or simply Mod ( v ; 1 ). BTW, in Filemaker, v - Floor ( v ) cannot be negative.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now