In C#, I have a situation where I have two possible numbers in a textbox control.
The numbers can be either:
a) .xxxx
or
b) .xx
How do I write a condition that says, "If the textbox has 4 decimal places, then call this function, otherwise, if the textbox has 2 decimal places, then call this function."
Seems easy, but I don't know how to evaluate the decimal places.
Thanks much!