I want to receive the number after the decimal dot in the form of an integer. For example, only 05 from 1.05 or from 2.50 only 50 not 0.50
var decPlaces = (int)(((decimal)number % 1) * 100);
This presumes your number only has two decimal places.