
6 Nov
2009
6 Nov
'09
7:39 a.m.
On Fri, Nov 6, 2009 at 9:32 AM, David Virebayre
On Fri, Nov 6, 2009 at 6:59 AM, Nathan M. Holden
wrote: Um... well, I solved my own problem.
It turns out that my 20-30 minutes of searching for a way to \definecolor in terms of 0-255 instead of 0.0-1.0 were just 5 minutes short of finding out a way to do it.
This is embarrassing.
If you have this problem again, you can use printf : <snip>
There's also Numeric: http://www.haskell.org/ghc/docs/latest/html/libraries/base/Numeric.html Prelude> Numeric.showFFloat (Just 4) 0.001 "" "0.0010" -- Johannes Laire