converts binary into decimal