Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

1-01-02-more-detail.md Example expected a float value for output but got an integer instead. #33

Open
badlirashid opened this issue Mar 6, 2017 · 0 comments

Comments

@badlirashid
Copy link

Hi,

When doing the example for 1-01-02-more-detail.md on line 246, instead of getting the value of 2.0 (float) i got a value of 2 (integer).Using sbcl 1.3.15.

  • (defvar one 1.0)
    ONE

  • one
    1.0

  • (defun mad-adder (one)
    (declare (special one))
    (let ((one 1))
    (+ one (locally (declare (special one)) one))))
    MAD-ADDER

  • (mad-adder one)
    2

  • (+ one one)
    2.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant