How to get a integer part and decimal part from a float value?

Dec 12 2006 4:21 PM
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.

Answers (1)