MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / Mod12

Function Mod12

general.cpp:475–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473// A similar modulus function: Convert an integer to value from 1-12.
474
475int Mod12(int i)
476{
477 while (i > cSign)
478 i -= cSign;
479 while (i < 1)
480 i += cSign;
481 return i;
482}
483
484
485// Convert an inputed fractional degrees/minutes value to a true decimal

Callers 15

PrintObjectsFunction · 0.85
PrintSignsFunction · 0.85
DrawWheelFunction · 0.85
XChartHorizonFunction · 0.85
XChartHorizonSkyFunction · 0.85
XChartTelescopeFunction · 0.85
XChartIndianFunction · 0.85
XChartSphereFunction · 0.85
DignifyFunction · 0.85
AddTimeFunction · 0.85
SzZodiacFunction · 0.85
SzTimeRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected