nim-codex/codex/utils/stintutils.nim

5 lines
126 B
Nim

import pkg/stint
func fromDecimal*(T: typedesc[StUint|StInt], s: string): T {.inline.} =
parse(s, type result, radix = 10)