2010-03-31から1日間の記事一覧

数値(Numeric)表示関数

The Haskell 98 Report 14数値 14.1 表示関数 Prelude> Numeric.showInt 123 "" -- Int を文字列に "123" Prelude> Numeric.showHex 123 "" -- Int を16進数文字列に "7b" Prelude> Numeric.showOct 123 "" -- Int を8進数文字列に "173" Prelude> Numeric.s…