>>I've found an example elsewhere, and modified a bit to fit my needs. See comments for original source and modifications:
>
>I have tried it.
>
>I see you have resolved the spacing issue.
>
>I would need to see about adjusting for the proper casing. I also need to adjust it a little bit to support the decimals, in numeric however, so to complete such a function for paychecks for example.
>
>However, can you try it with 1234.56 and you will see that it would give 1235 instead of 1234. I had the same issue with the other code. There is some kind of rounding that I need to avoid.
Michel, for my needs I don't need decimal parsing. That's why I set the parameter to accept only long. The casing issue would be easy enough to remedy by changing the casing in the code.