You should really share your code so one can have a look of what you created and find the problem in there.
Without seeing your code my only guess that a problem (apart from a bug) could be with localisation. E.g. in your country you use coma (,) for decimal separation, while the default localisation settings are interpreting numbers as done in English: the decimal separator is a dot (.)
For example, you may write 3,14 (notice the coma) while the computer only understands 3.14 (notice the dot) without setting up any localisation.