Contact: aviboots(AT)netvision.net.il
32,304 questions
42,479 answers
573 users
package main import ( "fmt" "strconv" "reflect" ) func main() { s := "01101" // BIN i, err := strconv.ParseInt(s, 2, 64) fmt.Println("DEC", i, err, reflect.TypeOf(i)) } /* run: DEC 13 <nil> int64 */