bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] Minor problem in mps_numb


From: Andrew Makhorin
Subject: Re: [Bug-glpk] Minor problem in mps_numb
Date: Thu, 29 Aug 2002 00:39:57 +0400

Thank you very much for your bug report!

>The routine above creates a fault when called with a parameter val which is
>a negative number and gets fornatted with a negative two digit exponent.
>(i.e -0.2141234123E-10).    I recognize that this is a rather rare
condition
>but it the fault can be prevented simply by changing the 6 to 5 in the
>following line.
>
>      for (n = 12; n >= 6; n--)

n is number of decimal places, so n = 5 results in too low accuracy.
I'll change the code in order to provide at least 6 decimal places in
the resultant string.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]