Subject: Re: [ast-developers] float i; (( i.MAX, i.MIN, i.EPSILON )) constants? --------
> Could the numeric types, i.e. typeset -i/-E have a similar > functionality like b.true to access the minimum, maximum, epsilon, ... > values? > > For example: > > typeset -lE i; (( i.MIN )) would be the equivalent to C's LDBL_MIN > typeset -lE i; (( i.MAX )) would be the equivalent to C's LDBL_MAX > typeset -lE i; (( i.EPSILON )) would be the equivalent to C's LDBL_EPSILON > typeset -lE i; (( i.MAX_10_EXP )) would be the equivalent to C's > LDBL_MAX_10_EXP > typeset -sE i; (( i.MIN )) would be the equivalent to C's FLT_MIN > typeset -sE i; (( i.MAX )) would be the equivalent to C's FLT_MAX > typeset -sE i; (( i.EPSILON )) would be the equivalent to C's FLT_EPSILON > typeset -sE i; (( i.MAX_10_EXP )) would be the equivalent to C's > FLT_MAX_10_EXP > > Tina > > Interesting idea, but the implementation technique that I use for types would be too inefficient in space for numbers. I will put this on my list of possible extensions. David Korn [email protected] _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
