You can convert a string to an integer in Nim using the parseInt procedure:
import strutils echo parseInt("5") + 4
Running this yields:
9
Leave a comment