I need to convert a character in its binary string.
Ex : C = 34 = "1000011"
My work in progress look like this. It's work only for "C" character :
import Foundation
func charToBin(c:Character) -> String {
let binaire = 34
return String(binaire, radix: 2)
}
let c:Character = "C"
let b = charToBin(c)