Difference on rounding between excel and dolibarr are not on the mathematic function to round but there difference because you dont use the same method to make clauclation.
Dolibarr calculate amount of vat or sales tax by summing rounded lines.
When you make calculation manually, you calculate amount of vat or sales tax by rounding summed lines.
summ of rounded lines is not round of summed lines.