chickadee » math » fpprobability?

fpprobability? x #!optional log?procedure
x
flonum
log?
boolean

When log? is #f, returns #t when (<= 0.0 x 1.0). When log? is #t, returns #t when (<= -inf.0 x 0.0)

Examples:

> (fpprobability? -0.1)
#f
> (fpprobability? 0.5)
#t
> (fpprobability? +nan.0 #t)
#f