Aggiunta la trail() alla fine delle round() e ceil() per GreenLeaf,
in modo da evitare errori sull'arrotndamento. Errore MI1112. git-svn-id: svn://10.65.10.50/trunk@3122 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
93dd2b09dd
commit
7174f935cb
@ -550,6 +550,7 @@ real & real ::round (
|
|||||||
divdfd (ptr (), ptr (), p);
|
divdfd (ptr (), ptr (), p);
|
||||||
dround (ptr (), ptr (), 0);
|
dround (ptr (), ptr (), 0);
|
||||||
muldfd (ptr (), ptr (), p);
|
muldfd (ptr (), ptr (), p);
|
||||||
|
trail();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
dround (ptr (), ptr (), prec);
|
dround (ptr (), ptr (), prec);
|
||||||
@ -576,6 +577,7 @@ real & real ::ceil (int prec)
|
|||||||
if (prec != 0)
|
if (prec != 0)
|
||||||
muldfd (ptr (), ptr (), p);
|
muldfd (ptr (), ptr (), p);
|
||||||
|
|
||||||
|
trail();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user