You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please tell me if clingo supports floating -point numbers or not?
I have a fact that says "one batch has 1.5 gallons of coffee. ". I want to write it as batch_size_gallons(1.5). but clingo reads the decimal after 1 as a full stop and throws an error that says:
:3:21-22: error: syntax error, unexpected ., expecting ) or ;
The google search says that floating-point numbers are not supported by Answer-set programming. I am just checking if there is any work-around this that I do not know of.
Thanks
Navdeep
The text was updated successfully, but these errors were encountered:
Hello,
Can you please tell me if clingo supports floating -point numbers or not?
I have a fact that says "one batch has 1.5 gallons of coffee. ". I want to write it as batch_size_gallons(1.5). but clingo reads the decimal after 1 as a full stop and throws an error that says:
:3:21-22: error: syntax error, unexpected ., expecting ) or ;
The google search says that floating-point numbers are not supported by Answer-set programming. I am just checking if there is any work-around this that I do not know of.
Thanks
Navdeep
The text was updated successfully, but these errors were encountered: