
26 Jan
2005
26 Jan
'05
12:48 p.m.
Hello! I have a list of integer numbers (grayscale values from 0 to 255) and want to convert them to a list of double numbers, so that each number is 0 <= x <= 1, where 0 is completely black and 1 is completely white. Before I convert the numbers, I need to convert them to a list of double values (then I can use map to re-scale each element from 0..255 to 0..1). How can I convert an Int into a Double? TIA Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com