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

Function Dvd

general.cpp:302–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300// Integer division, like the "/" operator but always rounds result down.
301
302long Dvd(long x, long y)
303{
304 long z;
305
306 if (y == 0)
307 return x;
308 z = x / y;
309 if (((x >= 0) == (y >= 0)) || x-z*y == 0)
310 return z;
311 return z - 1;
312}
313
314
315// Lookup a string within a table (case insensitively) returning the index

Callers 1

MatrixJulianToMdyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected