Re: [Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Michael Letterle
gt; > Let me pose this question to the list: which classes in the BCL (if any) do > you think should get the "Rubification" treatment? > > -Original Message- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Ben Hall > Sent: Thursday, Novemb

Re: [Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Curt Hagenlocher
ursday, November 06, 2008 4:20 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] IronRuby and System::Decimal Hello, Just playing around with some .Net interop and the Decimal type. When I do puts, I expected that this would have given me the underlying number, or at least call to_string

Re: [Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Ben Hall
Also, how would I compare decimals in ruby, as Ruby doesn't have a decimal type built in? I wanted to do something like @d > '12312.123123'.to_d However, that doesn't appear to be possible. I attempt to do to_f, but I got the following error: ArgumentError: Object must be of type Decimal. >Fro

[Ironruby-core] IronRuby and System::Decimal

2008-11-06 Thread Ben Hall
Hello, Just playing around with some .Net interop and the Decimal type. When I do puts, I expected that this would have given me the underlying number, or at least call to_string. Instead I got the following behaviour, with the object type being outputted. >>> @d = System::Decimal.MinValue => #