タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

cに関するlabochoのブックマーク (2)

  • How do I display the binary representation of a float or double?

    I'd like to display the binary (or hexadecimal) representation of a floating point number. I know how to convert by hand (using the method here), but I'm interested in seeing code samples that do the same. Although I'm particularly interested in the C++ and Java solutions, I wonder if any languages make it particularly easy so I'm making this language agnostic. I'd love to see some solutions in ot

    How do I display the binary representation of a float or double?
    labocho
    labocho 2013/02/08
    float 浮動小数点数のバイナリ表現を得る方法 / union 使えば一発。な、なるほど。
  • 機械学習序曲(仮) > 数値計算の実行速度 - Python, C, Rの比較


    C Python    Python R R   R > Python >CCPython15% PythonR40%  CPython    Python  CPython(
    labocho
    labocho 2011/10/31
    下手にCで書くより最適化されたライブラリを使うpython / r のが速いとい話
  • 1