[MacRuby-devel] [MacRuby] #280: NSNumber#decimalValue cant convert to ruby object

MacRuby ruby-noreply at macosforge.org
Sun Jun 7 11:57:23 PDT 2009


#280: NSNumber#decimalValue cant convert to ruby object
--------------------------------------+-------------------------------------
 Reporter:  matt.whiteside@…          |       Owner:  lsansonetti@…        
     Type:  defect                    |      Status:  new                  
 Priority:  blocker                   |   Milestone:                       
Component:  MacRuby                   |    Keywords:                       
--------------------------------------+-------------------------------------
 macirb
 >> framework 'foundation'
 => true
 >> NSNumber.numberWithFloat(1.2)
 => #<NSCFNumber:0x800053a60>
 >> NSNumber.numberWithFloat(1.2).decimalValue
 ArgumentError: can't convert C/Objective-C value `0x7fff5fbf94a0' of type
 `b8' to Ruby object
         from (irb):3:in `decimalValue'

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/280>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list