From: Bertram Scharpf Date: 2008-12-31T13:24:06+09:00 Subject: Re: N00b question about Infinity and Float Hi, Am Mittwoch, 31. Dez 2008, 12:12:55 +0900 schrieb Kedar Mhaswade: > irb(main):004:0* google=10**100 > => > 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 > irb(main):005:0> googleplex=10**google > (irb):5: warning: in a**b, b may be too big > => Infinity > irb(main):006:0> google.class > => Bignum > irb(main):007:0> googleplex.class > => Float > > This was nice! But, I expected googleplex.class to be BigNum. Is > Infinity a Float? I like this kind of questions. A weird example, though; I would prefer an exception. BigNum * BigNum may not result in a Float. Hit me with your refutations. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de