name confusion with HP library function prototype (?)
This commit is contained in:
parent
ff3fa48fc7
commit
31106cc750
@ -569,7 +569,7 @@ pow10(int exp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static long
|
static long
|
||||||
round(LDOUBLE value)
|
roundv(LDOUBLE value)
|
||||||
{
|
{
|
||||||
long intpart;
|
long intpart;
|
||||||
intpart = (long) value;
|
intpart = (long) value;
|
||||||
@ -621,7 +621,7 @@ fmtfp(
|
|||||||
|
|
||||||
/* we "cheat" by converting the fractional part to integer by
|
/* we "cheat" by converting the fractional part to integer by
|
||||||
multiplying by a factor of 10 */
|
multiplying by a factor of 10 */
|
||||||
fracpart = round((pow10(max)) * (ufvalue - intpart));
|
fracpart = roundv((pow10(max)) * (ufvalue - intpart));
|
||||||
|
|
||||||
if (fracpart >= pow10(max)) {
|
if (fracpart >= pow10(max)) {
|
||||||
intpart++;
|
intpart++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user