Corretta setdec nel caso di reali senza decimali
git-svn-id: svn://10.65.10.50/trunk@712 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
eb9ed8599b
commit
d7aec9b15e
@ -538,9 +538,8 @@ Se si utilizza spiegarne dettagliatamente il motivo.
|
||||
else
|
||||
if (!dec)
|
||||
{
|
||||
if (s1 == NULL) return ;
|
||||
l = LENGTH(s1); /* occhio verificare */
|
||||
if (s1 != NULL)
|
||||
{
|
||||
carry = (s1[1] >= '5');
|
||||
*s1 = '\0';
|
||||
while (carry)
|
||||
@ -563,7 +562,6 @@ Se si utilizza spiegarne dettagliatamente il motivo.
|
||||
for (i = l; i > (*s1 == '-'); i--) s[i] = s[i - 1];
|
||||
s[(*s1 == '-')] = '1';
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
s1++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user