Page 1 of 1
Err: More than one value for the scalar constant -p-
Posted: Mon Nov 20, 2006 8:38 am
by tammof
Hy,
does anyone know how to solve this?
Or is there any other way to use pi in equations than to model it with an auxiliary constant.
Thanks for the help,
cheers.
Posted: Mon Nov 20, 2006 8:40 am
by tammof

, use "." instead of "," is helpfull.
But the second question is still open.
Anyone?
Posted: Mon Nov 20, 2006 8:49 am
by Administrator
Can you explain the question in a bit more detail?
I've always just set up a constant for pi when I need to use it.
Tony.
Posted: Mon Nov 20, 2006 9:23 am
by tammof
Hy,
the problem is that there is a floating point error in the simulation when using p=3.14159 in an auxiliary constant. I guess i just have to cut the amount of numbers after the point maybe to p=3.142.
Tammo
[Edited on 11-20-2006 by tammof]
Posted: Mon Nov 20, 2006 10:06 am
by Administrator
Are you sure that the constant is causing the floating point error?
Can you post the model that fails so we can take a look?
Tony.
Posted: Tue Nov 21, 2006 10:53 am
by bob@vensim.com
At a guess you entered
pi = 3,14159
with a , to specify what we americans call the decimal point. Vensim uses , to separate things so it sees
3 , 14159
two numbers - thus the message.