RosettaCodeData/Task/Literals-Floating-point/Scheme/literals-floating-point.ss
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

10 lines
177 B
Scheme

.2 ; 0.2
2. ; 2.0
2e3 ; 2000
2.+3.i ; complex floating-point number
; in Scheme, floating-point numbers are inexact numbers
(inexact? 2.)
; #t
(inexact? 2)
; #f