Skip to content

How to detect nan value? #526

Open
Open
@mqcmd196

Description

@mqcmd196

I want to process a function that returns nan .

I always write like

(setq *c* (make-cube 0 0 0))
(eq (- *nan*) (send *c* :volume)) ;; t

However, I think it's a little weird having to write (- *nan*) instead of *nan* and ideally I want to write something like

(if (send *c* :volume)
  ;; do something

Do you have any features?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions