[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simpe Gwydion question



On Thursday,  11, 2002, at 10:30AM, Faried Nawaz <fn@hungry.com> wrote:

>hebisch@math.uni.wroc.pl (Waldek Hebisch) wrote in message news:<aghjiv$lt6$1@panorama.wcss.wroc.pl>...
>
>> -- How one prints a floating point number.  I was able 
>>    to find examples of format, but only for integers 
>
>Use the %= control sequence with format.
>
>  format-out("%=", 2.3 * 9.443341) => 21.7196843d0
>
>For the guts: gd/src/common/print/print.dylan

If you don't want the trailing d0, use %s with the float-to-string function. Which chops it off for you. :-)

- Rob.