We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factored out of #393.
# int.printBin 5 == "101" # int.printBin -5 == "-101" int.printBin : Int -> String # int.printOct 10 == "12" # int.printOct -10 == "-12" int.printOct : Int -> String # int.printDec 15 == "15" # int.printDec -15 == "-15" int.printDec : Int -> String # int.printDec 30 == "1e" # int.printDec -30 == "-1e" int.printHex : Int -> String
And some base-generic functions:
int.binary : Array Char int.octal : Array Char int.decimal : Array Char int.hexLower : Array Char int.hexUpper : Array Char int.printBase : Array Char -> Int -> String int.printBase base = int.printBasePrefixed base "" int.printBasePrefixed : Array Char -> String -> Int -> String int.printBasePrefixed base prefix n = case int.toBase base n of { negative, value } -> "${if negative then "-" else ""}$prefix$value" int.toBase : Array Char -> Int -> { negative : Bool, value : String }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Factored out of #393.
And some base-generic functions:
The text was updated successfully, but these errors were encountered: