Setting Decimal Points

Resolved

Hi Everyone,

I am having a small issue. As part of one of my app features users can enter a euro amount and submit it which would later be saved in my Firebase database(the field in my database is set as a double).

My only problem is that the decimal separator is set as a point (.) but my phone keyboard and most of my users will show a comma (,) when it pops up. and if they enter 25,60 instead of 25.60 my database won't be able to store it and the value will be saved as a null. What is the best way of handling this? Ideally, I would like to handle this dynamically ( automatically converting a , to a . ) or in a second best option set the decimal separator as a comma (,)

Thanks in advance for any suggestion

1
4 replies