Hello sir
I am a Computer Science Student and Usually Work with C# as my favorite language. I have encountered a problem i.e How to get an integer part and decimal part from a float value?
Eg: x=12.75
I want to get 12 separately and place it in one variable and 75 in another variable I tried many logic but i did not find a solution.
Loading
Graham ShoreyPosted Dec 13, 2006, 7:38 AM
string[] a = x.ToString().Split('.');