RosettaCodeData/Task/Literals-Floating-point/Scheme/literals-floating-point.ss

11 lines
177 B
Scheme
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
.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