Nim example - Convert String to/from the Int
May 9, 2023 · 1 min read
This tutorials explains about convert String to int and int to string in Nim language with examples. How to convert String to Int in Nim parseInt in strutils module convert given string to integer. It throws an ValueError if string is invalid number. Here is an example import strutils const value = parseInt("12") echo typeof(value) # int echo value # 12 How to convert Int to String in Nim Multiple ways we can convert int to string in nim....