In Math, 2,5 is not a number: such writing represents TWO numbers, separated by comma.
If you want to represent ONE number 2 as a decimal, write 2.5
(using decimal point, or "dot").
A comma is used in Math writing for TOTALLY DIFFERENT purposes.