dimanche 22 novembre 2020

What does the '.' after the 60 mean in the expression? [duplicate]

What does the '.' after the 60 mean in the expression?

double timeSaved(int limit, int avgs, int dis)
{
    double time_limit = 60.*dis/limit;
    double time_avgs  = 60.*dis/avgs;
    double tsave = time_limit-time_avgs;
    tsave = 10*tsave+.5;
    tsave = ((int)tsave)/10.0;
    return tsave;
}

Aucun commentaire:

Enregistrer un commentaire