round two decimal places on move (#591)

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-09-17 23:42:53 -07:00
committed by GitHub
parent f98f782b40
commit dd1b7631fa

View File

@ -289,5 +289,6 @@ fn create_start_sketch_at(
} }
fn round_before_recast(num: f64) -> f64 { fn round_before_recast(num: f64) -> f64 {
(num * 100000.0).round() / 100000.0 // We use 2 decimal places.
(num * 100.0).round() / 100.0
} }