To avoid that kind of situation I suggest to return the number as a array of strings. So
the user can explicit choose what to do. Furthermore, using array of strings as the return
value of the function can help users to handle the "problem" of decimal comma.
This seems like adding an unnecessary layer of complexity. Why take a function
that pulls numbers out of a string, then put those numbers back into a string? Maybe
that'd be useful to some users in some contexts, but how generally applicable would
this be?
PS