leptos_use::math

Function use_round

Source
pub fn use_round<S, N>(x: S) -> Signal<N>
where S: Into<MaybeSignal<N>>, N: Float,
Expand description

Reactive round().

§Demo

Link to Demo

§Usage

let (value, set_value) = create_signal(45.95);
let result: Signal<f64> = use_round(value); // 46