Shortcuts

Template Function ripple::math::sign

Function Documentation

template<typename T>
constexpr auto ripple::math::sign(T x) noexcept -> T

Computes the sign of the input, returning -1.0 if x is less than 0.0, 0.0 if x is equal to 0.0, and +1.0 if x is greater than 0.

Return

The sign of the input.

Parameters
  • x: The value to get the sign of.

Template Parameters
  • T: The type of the data.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples