complex c = 1.0 + 2.0 * I; // 1 + 2 i float r = re(c); // c の実部を取得 print(r);