blueloveTH 2 년 전
부모
커밋
214af91120
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tests/80_linalg.py

+ 2 - 2
tests/80_linalg.py

@@ -91,14 +91,14 @@ def mat_to_str_list(mat):
     ret = [[0,0,0], [0,0,0], [0,0,0]]
     for i in range(3):
         for j in range(3):
-            ret[i][j] = str(mat[i, j])[:6]
+            ret[i][j] = str(round(mat[i, j], 2))[:6]
     return ret
 
 def mat_list_to_str_list(mat_list):
     ret = [[0,0,0], [0,0,0], [0,0,0]]
     for i in range(3):
         for j in range(3):
-            ret[i][j] = str(mat_list[i][j])[:6]
+            ret[i][j] = str(round(mat_list[i][j], 2))[:6]
     return ret
 
 def mat_to_list(mat):