HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20bd039
)
Coerce results of division to a non fractional value
author
Iqbal Ansari
<iqbalansari02@yahoo.com>
Sun, 28 Aug 2016 15:09:21 +0000
(20:39 +0530)
committer
Iqbal Ansari
<iqbalansari02@yahoo.com>
Sun, 28 Aug 2016 15:09:21 +0000
(20:39 +0530)
clisp/core.lisp
patch
|
blob
|
blame
|
history
diff --git
a/clisp/core.lisp
b/clisp/core.lisp
index
a54fdc4
..
1136c4c
100644
(file)
--- a/
clisp/core.lisp
+++ b/
clisp/core.lisp
@@
-40,8
+40,9
@@
(types:apply-unwrapped-values '* value1 value2))))
(cons (types:make-mal-symbol "/")
- (types:make-mal-builtin-fn ( lambda (value1 value2)
- (types:apply-unwrapped-values '/ value1 value2))))
+ (types:make-mal-builtin-fn (lambda (value1 value2)
+ (types:make-mal-number (float (/ (types:mal-data-value value1)
+ (types:mal-data-value value2)))))))
(cons (types:make-mal-symbol "prn")
(types:make-mal-builtin-fn (lambda (&rest strings)