I am trying to remove just the decimal point from a decimal number in C#.
For example:
2353.61 I want 235361
A simple solution would be:
while((int)n != n) n *= 10;
Multiplying the number by 10 moves the decimal point 1 place to the right. You need to repeat this multiplication until there are no more numbers on the right side. To detect if there are more numbers on the right, you simply cast it to int, which drops the decimal part.