Try this: Feet = (Centimetres / 2.54) / 12; int iFeet = (int)Feet; inches = (Feet - (double)iFeet) * 12;. To elaborate a bit:.
確定! 回上一頁