query
On this page

isFloat

lib.isFloat

Primop
Docs pulled from | This Revision | 18 days ago


Nix manual

Takes 1 arguments

e

Return true if e evaluates to a float, and false otherwise.

Noogle detected

Aliases

Detected Type
isFloat :: a -> Bool

Implementation

This function is implemented in c++ and is part of the native nix runtime.

src/libexpr/primops.cc:638

static void prim_isFloat(EvalState & state, CallSite callSite, Value * const * args, Value & v)
{
    state.forceValue(*args[0], noPos);
    v.mkBool(args[0]->type() == nFloat);
}

Implementation

The following is the current implementation of this function.

isFloat