Skip to content

rtfeldman/elm-hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hex

Convert integers to and from hexadecimal strings in Elm.

-- Convert a hexdecimal string such as "abc94f" to a decimal integer.

Hex.fromString "a5" == Ok 165
Hex.fromString "hat" == Err "invalid hexadecimal string"


-- Convert a decimal integer to a hexdecimal string such as `"abc94f"`.

Hex.toString 165 == "a5"

About

Work with Hexadecimal numbers in Elm.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages