(roundrange): Use roundavg().

This commit is contained in:
Markus Armbruster 2006-06-22 20:29:34 +00:00
parent 5a0dc14626
commit 0adc54d43a

View file

@ -117,11 +117,5 @@ fortrange(struct sctstr *sp)
int int
roundrange(double r) roundrange(double r)
{ {
double f; return roundavg(r);
f = r - (int)r;
if (chance(f))
return (int)r + 1;
else
return (int)r;
} }