<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:12pt"><div><span>Thanks, all.</span></div><div><span><br></span></div><div><span>I noticed that I "print" will not handle decimals properly.  I've googled for formatted output for Gambit and Scheme and haven't found any info on this that applies to Gambit.  Have also looked in the latest version of The Scheme Programming Language and it also does not deal with formatted decimals, although it does mention printf, which Gambit seems to lack.</span></div><div><span><br></span></div><div><span>Any comments on how to print formatted decimals?</span></div><div><span><br></span></div><div><span>Thanks again, Steve</span></div><div><br></div><div style="font-size: 12pt; font-family: garamond, 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr
 size="1"><b><span style="font-weight:bold;">From:</span></b> Jeff Read <bitwize@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Steve Graham <jsgrahamus@yahoo.com>; gambit List <gambit-list@iro.umontreal.ca><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, October 31, 2011 9:51 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [gambit-list] Error when loading/running<br></font><br>
<div id="yiv1646608128"><div>You have a single quote floating out there with nothing after it.</div>
<div>You probably should also define hrs1 and hrs2 to something, and not rely on `set!' to return a value.</div>
<div class="yiv1646608128gmail_quote">On Oct 31, 2011 11:45 AM, "Steve Graham" <<a rel="nofollow" ymailto="mailto:jsgrahamus@yahoo.com" target="_blank" href="mailto:jsgrahamus@yahoo.com">jsgrahamus@yahoo.com</a>> wrote:<br><blockquote class="yiv1646608128gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: garamond, 'new york', times, serif; "><div style="font-family:garamond,;font-size:12pt;">Newbie here.  I'm trying to run a scheme program from gsi and getting an error I don't understand:</div>
<div style="font-family:garamond,;font-size:12pt;"><br></div><div><div><font face="garamond, 'new york', times, serif"><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>type timecalc.sch</div>
<div>(define hrs1)</div><div>(define hrs2)</div><div>(display "Hrs 1: ") (set! hrs1 (read))</div><div>(display "\nHrs 2: ") (set! hrs2 (read))</div><div><br></div><div>(print "\n\n" (+ hrs1 hrs2) " hours --> $" (* (+ hrs1 hrs2) 22))'</div>
<div><br></div><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>gsi -:d0 timecalc.sch</div><div><br></div><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>gsi timecalc.sch</div><div>*** ERROR
 IN "timecalc.sch"@7.1 -- Datum expected</div><div><div><br></div><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>gsi</div><div>Gambit v4.6.2</div><div><br></div><div>> (load "timecalc.sch")</div><div>*** ERROR IN "timecalc.sch"@7.1 -- Datum expected</div>
<div>1></div></div><div><br></div><div>Any tips?</div><div><br></div><div>TIA, Steve</div></font></div></div></div></div><br>_______________________________________________<br>
Gambit-list mailing list<br>
<a rel="nofollow" ymailto="mailto:Gambit-list@iro.umontreal.ca" target="_blank" href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a rel="nofollow" target="_blank" href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div>
</div><br><br></div></div></div></body></html>