(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
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue