JanetDocsI'm feeling luckyGithub sign in

math/next



    cfunction

    (math/next x y)
    
    Returns the next representable floating point value after x in the
    direction of y.


2 examplesSign in to add an example
Loading...
(one? (math/next 1 math/inf))  # => false
cellularmitosis
# 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
cellularmitosis