Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Know what this method means, 'amod' ?

Status
Not open for further replies.

Rogers333

Technical User
Jul 6, 2008
2
Analog Modulus?
Absolute Modulus?

I really can't figure it out, any help would be appreciated. I am trying to port this code, and I can't figure out it's javascript's reference.


It is being used in this open-source code here:

function jd_to_mayan_tzolkin(jd)
{
var lcount;

jd = Math.floor(jd) + 0.5;
lcount = jd - MAYAN_COUNT_EPOCH;
return new Array (amod(lcount + 20, 20), amod(lcount + 4, 13));
}
 
Oh nevermind,

it does seem to be Absolute Modulus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top