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));
}
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));
}