DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦ae4f5be3b⟧ TextFile

    Length: 269 (0x10d)
    Types: TextFile
    Names: »round.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Empire.V/V1.1/EMPSUBS/round.c« 

TextFile

round(num, quantum)
int num, quantum;
{

        return ((((num + quantum) >> 1) / quantum) * quantum);
}

long
ldround(dnum, quantum)
double dnum;
int quantum;
{
        long lnum;

        lnum = dnum + (quantum / 2);
        return (((lnum / quantum) * quantum));
}