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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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