Please guide me an issue, I am getting a price from the server as below (as an example)
two hundred forty-two
and I want to convert this value into 242.00.
Please guide me on how to convert it.
I know we can use .spellOut with NumberFormatter for converting value into String but can't find a way to do the above.
NumberFormatterhas a methodnumber(from: String)? It doesn't work? Else, I wonder if there is a (NS)DataDetector that might work on that.