<div dir="ltr">Thanks, Asumu. I hadn't known about the ~r-like formatters.<div><br></div><div>Kathi</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 2, 2014 at 4:52 PM, Asumu Takikawa <span dir="ltr"><<a href="mailto:asumu@ccs.neu.edu" target="_blank">asumu@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 2014-04-24 05:25:07 -0400, Kathi Fisler wrote:<br>
> I'm generating class notes in HTML via scribble. I'm trying to include<br>
> the number 10.50 (as a price in an test case, so the trailing 0 matters).<br>
> I'm using format to produce the strings that go into the rendered html.<br>
> When I do this (whether with ~a or ~s), the trailing 0 is dropped,<br>
> producing 10.5 in my output instead of 10.50. <br>
<br>
</div>Maybe this is too late to be useful (I think the mailing list ate your<br>
post?), but here's one way to do it:<br>
<br>
> (~r 10.5 #:precision '(= 2))<br>
"10.50"<br>
<br>
Cheers,<br>
Asumu<br>
<br>
</blockquote></div><br></div>