From: "Jon A. Lambert" Date: 2005-11-06T13:05:46+09:00 Subject: Re: Infinity and -Infinity daz wrote: > > Without all that unnecessary fuss: > > Infinity = (+1.0/0.0) # set constant > > x = -Infinity-3 > p x # -Infinity > Okay thanks. I'm going to set my own constant. The math looks good too, although I'm just using for boundary conditions. I was suprised not to find min or max functions either looking for ... someclass#min(x,y) or x.min(y) I ended up using x < y ? x : y Then I stumbled upon...Enumerable's [x, y].min So I ended up using a mix of both as I was looping through arrays in some cases to get the min/max. I'm presuming the latter is slightly slower for just a check of two numbers. -- J. Lambert