Last post May 19, 2008 06:03 AM by Bob Ross
May 12, 2008 07:57 AM|Bob Ross|LINK
I have several pages that show tables of numeric results that can be in the form "< 0.01", "2.123123", "1231234" etc...
I need to create a function that can take a number of any format and return the same number but formatted to the current culture.
The trouble is I do not know what type of number I am going to be dealing with so I do not know what variable type to use. Any Ideas?
Also most number types have a function ToString() that will accept format and provider (holding the culuture information) that will reformat the number for the specific culture.
But again I do not know what format the number is to send as an argument.
Any help would be greatly appreciated.
May 12, 2008 08:29 AM|murthysrn|LINK
execute the culture for the English standard.
First convert the given function to string remove any special char,symbol multiple dot(.) etc
check for the array only with numeric that is (0,1,2,3,...9)
make the string as numerics with may be one dot.
then convert the numeric string into local culture.
May 12, 2008 09:40 AM|Bob Ross|LINK
ummmm.... Thanks but that actually doesn't address the issues I was asking about at all.
Cheers anyway though.
Any ideas anyone?
May 19, 2008 06:03 AM|Bob Ross|LINK
Can anyone help me create a function that changes all aspects of a number to a different culture format?