|
From: | William Ramsay |
Subject: | [Chicken-users] Number question |
Date: | Fri, 28 Sep 2007 08:19:24 -0400 |
User-agent: | Thunderbird 2.0.0.6 (X11/20070728) |
Hi,I'm trying to convert rgb values to hex strings. The algorithm to make the conversion is simple enough. The problem is that the math involved produces real numbers rather than whole numbers (i.e. I get 12.0 instead of just plain 12). When I try to use this number against a list of equivalent hex strings (i.e. position 12 is "C") I get an error because 12.0 is a bad argument type for a list-ref. How do I convert the 12.0 to 12?
Bill
[Prev in Thread] | Current Thread | [Next in Thread] |