here also are example usages of the methods above...

irb>a = "@\016\254D\000\000\000\000\000\000"        # = 44100
irb>b = "@\017\200\000\000\000\000\000\000\000"   # = 65536

irb>read_ieee_extended a
=> 44100
(ok)

irb>read_ieee_extended b
=> 65536
(ok)

irb>write_ieee_extended 44100
=> "@\016\254D\000\000\000\000\000\000"
(ok)

irb>write_ieee_extended 65536
=> "@\016\000\000\000\000\000\000\000\000"
(error)

/Anton

-- 
Posted via http://www.ruby-forum.com/.