Round invece di trunc
git-svn-id: svn://10.65.10.50/trunk@2586 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
859357a423
commit
c7761ee095
@ -1650,7 +1650,7 @@ void TPagamento::set_rate_auto()
|
|||||||
const real reminder = toslice - r1;
|
const real reminder = toslice - r1;
|
||||||
if (!reminder.is_zero())
|
if (!reminder.is_zero())
|
||||||
{
|
{
|
||||||
ro = reminder/real(rut-1); ro.trunc(round(v));
|
ro = reminder/real(rut-1); ro.round(round(v));
|
||||||
r1 = (toslice - (ro*real(rut-1)));
|
r1 = (toslice - (ro*real(rut-1)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user