JanetDocsPlaygroundI'm feeling luckyGitHub sign in

math/next



    cfunction
    src/core/math.c on line 306, column 1

    (math/next x y)

    Returns the next representable floating point vaue after x in the 
    direction of y.


2 examplesSign in to add an example
Loading...
(one? (math/next 1 math/inf))  # => false
cellularmitosisPlayground
# Note: the numbers may appear the same, but this is only due to printing truncation.
1                             # => 1
(math/next 1 math/inf)        # => 1
(< 1 1)                       # => false
(< 1 (math/next 1 math/inf))  # => true
cellularmitosisPlayground