sign

Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0.

@safe pure nothrow
float
sign
(
T
)
(
T x
)

Meta