nim-dagger/codex/utils/stintutils.nim

5 lines
126 B
Nim
Raw Normal View History

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