Hello Andrew and Xypron
------------------------------------------------------------
To: [email protected], ...
Subject: Re: [Help-glpk] Precision of numbers writing Objective to
Access Table
Message-ID: <[email protected]>
From: "glpk xypron" <[email protected]>
Date: Tue, 02 Nov 2010 23:17:23 +0100
------------------------------------------------------------
> --- glpsql.c 2010-10-16 02:00:31.000000000 +0200
> +++ glpsql.c 2010-11-02 23:13:36.000000000 +0100
> @@ -959,7 +959,7 @@
> strcat( query, part );
> switch (mpl_tab_get_type(dca, k))
> { case 'N':
> - sprintf(num, "%-18g",mpl_tab_get_num(dca, k));
> + sprintf(num, "%.18g", DBL_DIG, mpl_tab_get_num(dca, k));
I imagine that "%.18g" should be "%.*g".
> strcat( query, num );
> break;
> case 'S':
---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : [email protected]
Webmail (preferred) : [email protected]
[from Webmail client]
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk