Skip to content

Commit

Permalink
Increase the precision on GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Jun 1, 2021
1 parent fcab975 commit 03c9419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyslvs_ui/widgets/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def update_select_point(self, points: Optional[List[int]] = None) -> None:
continue
vpoint0 = self.vpoints[points[i - 1]]
vpoint1 = self.vpoints[points[i]]
distances.append(f"{vpoint1.distance(vpoint0):.04}")
angles.append(f"{vpoint0.slope_angle(vpoint1):.04}°")
distances.append(f"{vpoint1.distance(vpoint0):.06}")
angles.append(f"{vpoint0.slope_angle(vpoint1):.06}°")
ds_t = ", ".join(distances)
as_t = ", ".join(angles)
text += f" | {ds_t} | {as_t}"
Expand Down

0 comments on commit 03c9419

Please sign in to comment.