use leptos::prelude::*; use leptos_use::docs::demo_or_body; use leptos_use::math::use_floor; #[component] fn Demo() -> impl IntoView { let (value, set_value) = signal(5.95); let result: Signal = use_floor(value); view! {

"Value: " {move || value.get()}

"Floored: " {move || result.get()}

} } fn main() { _ = console_log::init_with_level(log::Level::Debug); console_error_panic_hook::set_once(); mount_to(demo_or_body(), || { view! { } }) }