Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
curry
pakcs
Commits
25d996ae
Commit
25d996ae
authored
Oct 20, 2019
by
Kai-Oliver Prott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix integer division for large numbers
parent
7866649d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib_src/prim_standard.pl
src/lib_src/prim_standard.pl
+1
-1
No files found.
src/lib_src/prim_standard.pl
View file @
25d996ae
...
...
@@ -119,7 +119,7 @@ prim_Int_minus(Y,X,R) :- R is X-Y.
prim_Int_times
(
Y
,
X
,
R
)
:-
R
is
X
*
Y
.
prim_Int_div
(
Y
,
X
,
R
)
:-
R
is
integer
(
floor
(
X
/
Y
)
).
prim_Int_div
(
Y
,
X
,
R
)
:-
R
is
div
(
X
,
Y
).
prim_Int_mod
(
Y
,
X
,
R
)
:-
isMod
(
R
,
X
,
Y
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment