Buttplug sex toy control library

fix: Use ceil for float calcs in client

As has been the case since 2017.

+2 -2
+2 -2
crates/buttplug_client/src/device/feature.rs
··· 1 - use std::{collections::HashMap, sync::Arc}; 1 + use std::sync::Arc; 2 2 3 3 use futures::{future, FutureExt}; 4 4 use getset::{CopyGetters, Getters}; ··· 58 58 if float_amt < 0.0f64 || float_amt > 1.0f64 { 59 59 Err(ButtplugClientError::ButtplugOutputCommandConversionError("Float values must be between 0.0 and 1.0".to_owned())) 60 60 } else { 61 - Ok((float_amt * feature_output.step_count() as f64) as u32) 61 + Ok((float_amt * feature_output.step_count() as f64).ceil() as u32) 62 62 } 63 63 } 64 64