2010-04-27から1日間の記事一覧

数値からローマ数字への変換

第42回 Ruby/Rails勉強会@関西 の演習問題 一方 Windows では Excel を使った。 require 'win32ole' class Integer EXCEL = WIN32OLE.new 'Excel.Application' def to_roman EXCEL.WorksheetFunction.Roman(self) end end [0, 1, 2, 3, 4, 5, 6, 9, 10, 11, …