A foothold in fractional (floating point) output.

形式
Plain text
投稿日時
2013-12-31 12:14
公開期間
無期限
  1. /* Reaching for a toehold in "decimal" point computer math.
  2. // By Joel Rees, December 2013.
  3. // Play with it, check out your compiler and your understanding.
  4. */
  5. #include <stdio.h> /* Standard input/ouput stuff. */
  6. int main( void )
  7. {
  8. printf( "An American size %d foot is about Japanese size %f.\n",
  9. 11, 11 * 2.54 );
  10. printf( "A Japanese size %d foot is about American size %f.\n",
  11. 27, 27 / 2.54 );
  12. return 0; /* Made it safely again? */
  13. }
ダウンロード 印刷用表示

このコピペの URL

JavaScript での埋め込み

iframe での埋め込み

元のテキスト