--Multipart_Fri_Apr_25_11:49:43_2003-1 Content-Type: text/plain; charset=ISO-2022-JP なかだです。 At Thu, 24 Apr 2003 02:38:48 +0900, Nobuyoshi-Nakada wrote: > http://www.cwi.nl/~cilibrar/floatingpointconv.pdf > http://ftp.ccs.neu.edu/pub/people/will/howtoread.ps 上記のBellerophonとAlgorithmRを、試しにRubyで実装してみました。 しかしこれ、SchemeとかRubyならいいけど、CだとBignumが面倒なこと になりな。 # ついでにデバッグ用のFloatの16進変換も。 --Multipart_Fri_Apr_25_11:49:43_2003-1 Content-Type: text/x-ruby; charset=US-ASCII Content-Disposition: attachment; filename="bellerophon.rb" Content-Transfer-Encoding: 7bit # $Id: bellerophon.rb,v 1.1 2003/04/25 02:45:07 nobu Exp $ class Float def split m, k ath.frexp(abs()) [self <