[clean-list] Calling C with side effects
John van Groningen
johnvg at cs.ru.nl
Fri Jun 2 17:05:12 MEST 2006
Matthew Bromberg wrote:
>WriteFile or better the stream libraries are just fine, however the only way to format a Real type into text, that I've currently found is
>to use toString. Imagine therefore trying to print out, say exp(20) in 8 characters or less. It requires exponential notation.
>That's why I found myself longing for a printf function to format floating point numbers and print to the console. Are there
>any other functions available for producing formatted floating point?
No, not yet. Maybe you can use the toStringWith function from the language shootout:
http://darcs.complete.org/local-branches/shootout.upstream/bench/Include/clean/LanguageShootout.icl
Regards,
John van Groningen
More information about the clean-list
mailing list