Returns #t if v is a number, #f otherwise.
Examples:
Examples:
Examples:
Returns
#tif
vis a number that is an
integer,
#fotherwise.
Examples:
Examples:
Examples:
Examples:
Return
#tif
vis a
fixnum,
#fotherwise.
Note: the result of this function is platform-dependent, so using it in syntax transformers can lead to platform-dependent bytecode files. See also fixnum-for-every-system?.
Return
#tif
vis a
flonum,
#fotherwise.
Return
#tif
vis a
single-flonum(i.e., a single-precision floating-point number),
#fotherwise.
Returns
#tif
single-flonumsare supported on the current platform,
#fotherwise.
Currently, single-flonum-available? produces #t when (system-type 'vm) produces 'racket, and single-flonum-available? produces #f otherwise.
If the result is #f, then single-flonum? also produces #f for all arguments.
Added in version 7.3.0.5 of package base.
Examples:
Examples:
Examples:
Examples:
> (even? 10.0)#t
> (even? 11)#f
> (even? +inf.0)even?: contract violation
expected: integer?
given: +inf.0
Examples:
> (odd? 10.0)#f
> (odd? 11)#t
> (odd? +inf.0)odd?: contract violation
expected: integer?
given: +inf.0
Returns #t if z is an exact number, #f otherwise.
Examples:
Returns #t if z is an inexact number, #f otherwise.
Examples:
Coerces
zto an exact number. If
zis already exact, it is returned. If
zis
+inf.0,
-inf.0,
+nan.0,
+inf.f,
-inf.f, or
+nan.f, then the
exn:fail:contractexception is raised.
Examples:
Coerces z to an inexact number. If z is already inexact, it is returned.
Examples:
Coerces x to a single-precision floating-point number. If x is already a single-precision floating-point number, it is returned.
Coerces x to a double-precision floating-point number. If x is already a double-precision floating-point number, it is returned.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4