<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br>Yes.&nbsp; all of those will work to convert float to string for output to file.&nbsp; There is probably a better way of writing CM pattern float output to a file as strings than my example, but at least this gets me going again.&nbsp; <br><br>Regards,<br>Jim<br><br><br>(number-&gt;string 123) <br>(object-&gt;string 123.45) <br>(format #f "~G" 123) <br>(format #f "~f" 123.456)<br><br><div><br>&gt; (define ouf1 (open-output-file "myfloats.txt"))<br>&gt; (define outstring "init")<br>&gt;  <br>&gt; (define (myfloats total)<br>&gt; (let ((test 0))<br>&gt;  (process  with mytable = (make-heap '(.5 1 2.5 3))<br>&gt;       until (= test total)<br>&gt;       do<br>&gt; (set! outstring (next mytable))   ;***stuck here with format conversion ***<br>&gt; (set! outstring (string-append outstring (string #\newline)))<br>&gt; (display outstring ouf1)<br>&gt; (print (next mytable))<br>&gt; (set! test (+ test 1))  <br>&gt; )))<br>&gt;  <br>&gt; (sprout (myfloats 10) )<br>&gt;  <br>&gt; (close-output-port ouf1)<br><br></div>                                               </div></body>
</html>