<div class="gmail_quote">On Fri, Nov 6, 2009 at 6:59 AM, Nathan M. Holden <span dir="ltr">&lt;<a href="mailto:nathanmholden@gmail.com">nathanmholden@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Um... well, I solved my own problem.<br>
<br>
It turns out that my 20-30 minutes of searching for a way to \definecolor in<br>
terms of 0-255 instead of 0.0-1.0 were just 5 minutes short of finding out a<br>
way to do it.<br>
<br>
This is embarrassing.<br></blockquote><div><br>If you have this problem again, you can use printf :<br><br><span style="font-family: courier new,monospace;">GHCi, version 6.10.3: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a>  :? for help</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Loading package ghc-prim ... linking ... done.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Loading package integer ... linking ... done.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Loading package base ... linking ... done.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Prelude&gt; import Text.Printf</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Prelude Text.Printf&gt; let f=0.001</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Prelude Text.Printf&gt; f</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1.0e-3</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Prelude Text.Printf&gt; printf &quot;%5.4f\n&quot; f</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">0.0010</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Prelude Text.Printf&gt;</span><br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br>