# HG changeset patch # User sam # Date 1713158533 -25200 # Node ID e7a53442eab80d1f842183325ec12985d4bbb380 # Parent 2f92d7e8059745ad4c91ba35f826aa2494bd166e fix: stringify function diff -r 2f92d7e80597 -r e7a53442eab8 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)