daco2020 2022. 11. 29. 23:47

Complete the function which converts a binary number (given as a string) to a decimal number.



Solution:

int binToDec(String bin) => int.parse(bin, radix: 2);