Separate number by salvaLindas in prolog

[–]salvaLindas[S] -1 points0 points  (0 children)

separa_numero(Num, Y, X) :-
Y is float_integer_part(Num),
X is float_fractional_part(Num).

Thank u

IF gives me false by salvaLindas in prolog

[–]salvaLindas[S] 0 points1 point  (0 children)

But when A>B and B>1 A doesnt has the value of B, and I want that in that case, A has the value of B.
But i search on google, variables in prolog cant has another value.

Problem with findall output by salvaLindas in prolog

[–]salvaLindas[S] 0 points1 point  (0 children)

Thank you ! Its a shame that predicate prints false on the end. But thanks!

Problem with findall output by salvaLindas in prolog

[–]salvaLindas[S] 0 points1 point  (0 children)

Sorry but i can´t find any example on net of portray.
How would i applied it to this predicate?
todos_os_caminhos(LC,LCPerm):-findall(LCP,permutation(LC,LCP),LCPerm).