Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fredcy/elm-parseint
Elm function for converting a String value to Int
https://github.com/fredcy/elm-parseint
Last synced: 15 days ago
JSON representation
Elm function for converting a String value to Int
- Host: GitHub
- URL: https://github.com/fredcy/elm-parseint
- Owner: fredcy
- License: bsd-3-clause
- Created: 2016-01-28T20:34:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T16:51:32.000Z (over 6 years ago)
- Last Synced: 2024-05-21T01:07:08.857Z (7 months ago)
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/fredcy/elm-parseint/latest/ParseInt
- Size: 27.3 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - fredcy/elm-parseint - Elm function for converting a String value to Int (Elm)
README
# elm-parseint
Convert String value to Int, or Int to String, with given radix.The `parseInt` function here is similar to Javascript's parseInt(), parsing a
decimal string and returning the corresponding Int value if any. `parseIntOct`,
`parseIntHex`, and `parseIntRadix` parse strings encoded as octal, hexadecimal,
or arbitrary radix, respectively.The `toRadix` function inverts `parseInt`, converting an Int to a String with a
given radix. `toRadix 10` is equivalent to `toString` for Int arguments.