Treatment isNegative

std/ops/num::isNegative


Generics

◻ N: Signed

Inputs

⇥ value: Stream<N>

Outputs

↦ negative: Stream<bool>


Tells if a stream contains negative values.

Output true for strictly negative integers, and false for 0 and positive ones.
ℹ️ For floating types (f32 and f64), NaN values gives false, -INFINITY and -0.0 gives true.