1
Answer

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

dinesh ezeikel

dinesh ezeikel

18y
4.4k
1
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)