Hi, i was wondering if i could represent a floating point and perform some basic calculations on it, using prolog...?
Something like this:
some_fact(blah,blah,blah,1.2).
some_fact(blah1,blah1,blah1,1.6).
// it doesn't work.... :
and how to perform basic conculations such as:
10_percent_discount(_before,_after):-_before is _before * 0.9.
// doesn't work too... :
Take Care,
Erik.
Something like this:
some_fact(blah,blah,blah,1.2).
some_fact(blah1,blah1,blah1,1.6).
// it doesn't work.... :
and how to perform basic conculations such as:
10_percent_discount(_before,_after):-_before is _before * 0.9.
// doesn't work too... :
Take Care,
Erik.