المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Replace numbers after the . with other numbers



C# Programming
07-07-2009, 11:00 AM
Greetings,

I am facing a problem with C#

I have a set of files that I want to replace any number that has -9999.**** (like -9999.1234 or any number that can be after the dot .) to be -9999.0000.

I have written a code that will put find any number that starts with -9999. However, I don't know how to replace it to be -9999.0000 . (the problem is finding and replacing the numbers after the . to be 0000)

If anybody can help me, that will be highly appreciated.

Thanks in advance.

Regards,