cc: [email protected] [email protected]
Subject: Re: Re: [ast-developers] arithmetric function int() does not work
--------


> Coincidentally there is no float() function to turn an integer into
> ksh's equivalent of a long double. The purpose would be to promote the
> variables type to a long double (typeset -lE) so that integer x=1;
> $((float(x)/3)) yields 0.33333333333333333333333333333
> 
> Tina
> -- 

You can do
        $((x/3.))
which will convert x to floating point and then do the division.

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to