10-09-14, 09:13 PM
PHP كود :
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show(GetDecimalPart(13.894).ToString()); // Output: 0.894
}
public double GetDecimalPart(double num)
{
return num - Math.Truncate(num);
}

