# HG changeset patch # User sam # Date 1713158533 -25200 # Node ID 87f2e9fcd0007b298f482415ca49a13298520571 # Parent 8dc855e516b404b0100d4ecfd7f848d700809ad6 fix: stringify function diff -r 8dc855e516b4 -r 87f2e9fcd000 semicongine/core/vector.nim --- 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)