M
Mike P
I want to find a particular character in a string, and then find the
length of the string after this point in the string, so that I can do a
rightpad on it if it is of a certain length (basically I want to pad a
monetary value if it is for example 12.5, so that it becomes 12.50).
I can think of a long winded way to do it by using a foreach loop to
find the '.', but is there a specific function in C# to find a character
in a string?
Cheers,
Mike
length of the string after this point in the string, so that I can do a
rightpad on it if it is of a certain length (basically I want to pad a
monetary value if it is for example 12.5, so that it becomes 12.50).
I can think of a long winded way to do it by using a foreach loop to
find the '.', but is there a specific function in C# to find a character
in a string?
Cheers,
Mike