Function leptos_use::math::use_floor

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

Reactive floor().

§Demo

Link to Demo

§Usage

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