Exercise 1.6.1

Integers

In the REPL

5

-5

1

1234567890123456789012345678901234567890

(expt 1234567890123456789012345678901234567890 2)

(expt 1234567890123456789012345678901234567890 147)

(expt -1234567890123456789012345678901234567890 147)

What You Should See

An integer can be positive or negative.

* 5
5

* -5
-5

It can also be any size.

* 1
1

* 1234567890123456789012345678901234567890
1234567890123456789012345678901234567890

* (expt 1234567890123456789012345678901234567890 2)
1524157875323883675049535156256668194500533455762536198787501905199875019052100

Give the last two examples a try as well, but sadly I can't show them because GitBook can't parse numbers that big to typeset them. But Lisp sure can.

results matching ""

    No results matching ""