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
=> #<System::Decimal:0x000005c>
>>> puts @d
#<System::Decimal:0x000005e>
=> nil
>>> puts @d.to_string
-79228162514264337593543950335
=> nil

Is this by design?

Thanks

Ben
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to