When you expect $0$ or $1$ as result, then there are two approaches: 1. rounding ($> 0.5$ is class 1, $\leq 0.5$ is class 0), 2. looking at the receiver operating characteristic curve (ROC) or the precision-recall (PR) curve to find a threshold. The second approach is better because it is possible to find the best threshold for the dataset at hand.
When you want the output probabilities to indicate confidence, then you should look at metrics such as expected calibration error or calibration curves. Then ideally low probabilities would mean high confidence for class 0, and high probabilities would mean high confidence for class 1.
As was noted in the comments, accuracy is not the best metric for assessing how good a classifier is. I would compute precision to be sure that the results are good. Your classifier is maybe overfitting.
You should also keep in mind that the output of a neural network (with sigmoid activation) is a probability between 0 and 1 and not a binary value 0/1.