(roundrange): Use roundavg().
This commit is contained in:
parent
5a0dc14626
commit
0adc54d43a
1 changed files with 1 additions and 7 deletions
|
@ -117,11 +117,5 @@ fortrange(struct sctstr *sp)
|
|||
int
|
||||
roundrange(double r)
|
||||
{
|
||||
double f;
|
||||
|
||||
f = r - (int)r;
|
||||
if (chance(f))
|
||||
return (int)r + 1;
|
||||
else
|
||||
return (int)r;
|
||||
return roundavg(r);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue