changeset 1113:87f2e9fcd000

fix: stringify function
author sam <sam@basx.dev>
date Mon, 15 Apr 2024 12:22:13 +0700
parents 8dc855e516b4
children 75e109bb62ba
files semicongine/core/vector.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/core/vector.nim	Sun Apr 14 00:34:04 2024 +0700
+++ b/semicongine/core/vector.nim	Mon Apr 15 12:22:13 2024 +0700
@@ -102,7 +102,7 @@
 func toString[T](value: T): string =
   var items: seq[string]
   for item in value:
-    items.add(&"{item:.5f}")
+    items.add(&"{item.float:.5f}")
   & "(" & join(items, "  ") & ")"
 
 func `$`*(v: TVec2[SomeNumber]): string = toString[TVec2[SomeNumber]](v)