- /* Reaching for a toehold in "decimal" point computer math.
- // 手探りか?足探りか?足を伸ばして、
- // 小数点扱いのコンピュータ算数の島に爪先まででも足を載せましょう。
- // By Joel Rees, December 2013.
- // ジョエル リースの2013年12月作。
- // Play with it, check out your compiler and your understanding.
- // これを使ってコンパイラの動作や自分の理解度をご確認ください。
- // いじってみて下さい。
- */
-
-
- #include <stdio.h> /* 標準入出力の色々 */
-
-
- int main( void )
- {
- printf( "アメリカサイズ %d 足は日本サイズではおよそ %f です。\n",
- 11, 11 * 2.54 );
- printf( "日本サイズ %d 足はアメリカサイズではおよそ %f です。\n",
- 27, 27 / 2.54 );
- return 0; /* Made it safely again? */
- }
-