On 13 August 2013 04:16, David Korn <d...@research.att.com> wrote: > cc: ast-users@lists.research.att.com ast-develop...@research.att.com > Subject: Re: Re: [ast-developers] [ast-users] Unit of least precision > (ULP)/spacing between floating point number problems > -------- > >> David send Roland a comment that nextafter(x+1.1,5) does not figure >> the data type of x+1.1 correctly and always uses the data type of the >> right value. >> >> IMO the rules of ISO C (C1X) should apply. >> >> The difficult part is that I do not know how to do that with the >> arithmetic engine in ksh, some how the value of node.isfloat (which is >> now a kind of enum describing which kind of floating point data type >> is used - float, double, long double) must be recalculated based on >> the left hand lhand_node.isfloat and right hand rhand_node.isfloat >> value of such operations. >> >> Olga >> >> > > I hope to be able to do this correctly in a future release. > > There are four types, integer, float, double, and long double.
How long will it take until ksh -c 'typeset -s -E x=4 ; print $(( x=nextafter(x,5) ))' uses nextafterf()? Tina -- Tina Harriott - Women in Mathematics Contact: tina.harriott.m...@gmail.com _______________________________________________ ast-users mailing list ast-users@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-users