[Top][All Lists]

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

Re: [Help-glpk] Time conversion functions

From: xypron
Subject: Re: [Help-glpk] Time conversion functions
Date: Fri, 21 Nov 2008 01:40:17 -0800 (PST)

Hello Andrew

>> Probably it would be reasonable to add two functions atoi and atod to
>> convert symbolic values to numeric ones.

GLPK executes automatic conversion to symbol in:

param i := 2008;
param s symbolic := i;
display i;

What I missed is that GLPK has no automatic conversion to numeric.

The following code fails:
param y := '2008';
display y;

The error given is:
"cannot convert '2008' to floating-point number"

A function atoi/atof is not necessary. Automatic conversion to numeric could
be an alternative. 

Best regards

View this message in context:
Sent from the Gnu - GLPK - Help mailing list archive at

reply via email to

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