hello friends,
i m stuck up in one code. actually i want to make function for split last 2 decimal values. if i got 1122.45 amount then i want to split last two decimal values "45" and store in text box.. hope you are understand.. please help..
thanks in advance

Dhirendra MisraPosted Dec 27, 2013, 6:10 AM
What I understood from your question that you want to split from decimal value.
You can try this.
txtbox.Text = s;
Thanks
Naeem KhanPosted Dec 27, 2013, 6:25 AM
Abhay ShankerPosted Dec 27, 2013, 6:16 AM
double value = 1122.45;
var values = value.ToString(CultureInfo.InvariantCulture).Split('.');
txtBox.Text =Convert.ToString( int.Parse(values[0]));
VulpesPosted Dec 27, 2013, 6:15 AM