You can just do it this way.
double value = 1.25; var stringValue = string.Format("{0:0}", value * 100, CultureInfo.InvariantCulture);
EDIT: A more general solution would be to Replace point with an empty string, as indicated in the comments.
double value = 1.25; var stringValue = value.ToString(CultureInfo.InvariantCulture).Replace(".",string.Empty);
EDIT2: There is also another general idea that does not use the Replace function (but also does not use String.Format )
var stringValue = string.Join("", value.ToString().Where(char.IsDigit));
Also another similar idea:
var stringValue = new string(value.ToString().Where(char.IsDigit).ToArray());
source share