casting - Integer division in Common Lisp? -


when (/ 7 2), should result 3? if (/ 7 2.0), 3.5, expected.

(floor 7 2) 

ref: http://rosettacode.org/wiki/basic_integer_arithmetic#common_lisp


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -