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

Re: string-to-float



At 07:30 PM 7/22/2002 -0400, Chris Double wrote:
>There is a formatted-string-to-float in the Dylanlibs [1]
>libraries. It's in utilities/dylanlibs-utilities.dylan.
>
>There is also a 'float-to-formatted-string' which displays a float
>without the 'd0' or 's0' appended to the end.
>
>You can use those two functions in your open source project as you see
>fit if you wish.
>
>[1]
>http://sourceforge.net/project/showfiles.php?group_id=26064&release_id=50994

Thanks.  I found that yours was more accurate than the other
implementations so I used it.  Both implementations I tried had
overflow errors when the decimal-places arg was > 7, so I just
wrapped a min(arg, 7) around it.  Probably not the optimal
solution...