On 12/3/08, David Korn <[EMAIL PROTECTED]> wrote:
> cc: [EMAIL PROTECTED]
>  Subject: Re: Re: [ast-users] Sign of floating-point zero...
>  --------
>
>
>  > Is there a reason why ksh93 does not display the negative sign for the
>  > value zero ? For example if I have use the C99 function "copysign"
>  > (copies absolute value of operant a and sign of operant b) I get this
>  > for { a=5, b=-0 }:
>  > -- snip --
>  > $ ksh93 -c 'float x; (( x=copysign(5, -0) )) ; printf "%f\n"
>  > x'
>  > -5.000000
>  > -- snip --
>  >
>  > Now if I swap operands a and b I get this result:
>  > -- snip --
>  > $ ksh93 -c 'float x; (( x=copysign(0, -5) )) ; printf "%f\n"
>  > x'
>  > 0.000000
>  > -- snip --
>
>
>
> This has been fixed for the next update.

Thank you.

Irek
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to