LISP program to demonstrate the use of numeric conversion functions
kw.lisp
(write-line"———————————————————————————————————————————")(write-line"Program to use numeric functions")(write-line"———————————————————————————————————————————")(terpri)(princ(floor152))(terpri)(princ(ceiling152))(terpri)(princ(round152))(terpri)(princ(truncate152))(terpri)(princ(ffloor152))(terpri)(princ(fceiling152))(terpri)(princ(fround152))(terpri)(princ(ftruncate152))(terpri)(princ(mod152))(terpri)(princ(complex215))(terpri)(setqc(complex152))(writec)(terpri)(princ(realpartc))(terpri)(princ(imagpartc))(terpri)(formatt"———————————————————————————————————————————")
Output
kodingwindow@kw:~$ clisp kw.lisp
———————————————————————————————————————————
Program to use numeric functions
———————————————————————————————————————————
7
8
8
7
7.0
8.0
8.0
7.0
1
#C(2 15)
#C(15 2)
15
2
———————————————————————————————————————————
kodingwindow@kw:~$
Dear User, Thank you for visitng Kodingwindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.
Dear User, We are grateful for your interest in the Kodingwindow Android app. We intend to soon make it available on the Google Play Store. Currently, Android versions 10 and up require manual apk installations. Would you like to get the app?