Kevin Lee 4 месяцев назад
Родитель
Сommit
76e164b7df
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/ezcad/types.rs

+ 1 - 1
src/ezcad/types.rs

@@ -141,7 +141,7 @@ pub struct Coordinate {
 
 impl Display for Coordinate {
     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
-        write!(f, "({}, {})", self.x, self.y)
+        write!(f, "({:.2}, {:.2})", self.x, self.y)
     }
 }