On Mon, 7 Mar 2005, Benja Fallenstein wrote:
+public final class SizeRequest {
+
+ /** "Infinity". Can be used as the maximum size request of lobs
+ * that can be used at arbitrarily large sizes.
+ * <p>
+ * Float.POSITIVE_INFINITY is not used so that we can play a trick:
+ * if we want to distribute two thirds of the available space
+ * to one component and one third to another, we can use 2*INF
+ * as the size request of one and 1*INF as the size request of the other.
+ */
+ float INF = (float)Math.pow(2, 1024);
Nice, you have just redefined infinity to non-infinity ;)
-Matti
_______________________________________________
fenfire-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/fenfire-dev