>>>>Using C#, how can I remove the decimals from a string? For example:
>>>>
>>>>"123.00" convert to "123"
>>>>
>>>>Thanks,
>>>
"123.00".Substring(0,s.IndexOf("."))
?
>>
>>
>>hmmmm
>
>Wha? Didn't work for you ? :-}
If you define s before
Also, when the string does not contain any dot you'll get a nice exception
Gregory