Projects

Ticket #280 (closed defect: fixed)

Opened 3 years ago

Last modified 22 months ago

NSNumber#decimalValue cant convert to ruby object

Reported by: matt.whiteside@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.6
Component: MacRuby Keywords:
Cc:

Description (last modified by martinlagardette@…) (diff)

$> macirb
>> framework 'Foundation'
=> true
>> NSNumber.numberWithFloat(1.2)
=> 1.20000004768372
>> NSNumber.numberWithFloat(1.2).decimalValue
TypeError: unrecognized runtime type `b8'
	from /private/tmp/(irb):3:in `<main>'
>> 

Change History

Changed 22 months ago by martinlagardette@…

  • description modified (diff)

Still a problem as of r3946

Changed 22 months ago by lsansonetti@…

The compiler does not know about bit fields (the _C_BFLD runtime type) yet.

Changed 22 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.6

It was more than simple bit fields, but NSDecimal should now work in r3970.

Note: See TracTickets for help on using tickets.