Function leptos_use::math::use_abs

source ·
pub fn use_abs<S, N>(x: S) -> Signal<N>
where S: Into<MaybeSignal<N>>, N: Float,
Expand description

Reactive abs().

§Demo

Link to Demo

§Usage

let (value, set_value) = create_signal(-32.25);
let result: Signal<f64> = use_abs(value); // 32.25