Convert data type in Euclidean distance calculation script

Discussion created by aorr on Apr 17, 2012
Latest reply on Apr 27, 2012 by aorr
Hi all,
I have a python script where I'm trying to perform a Euclidean distance on a feature class to generate a raster. The map units are meters so it outputs the cell size in meters as an integer format. I want it in miles, so I multiply by a constant to convert to miles. This, however, does not change the integer data format to a floating point. Is there any way to specify or convert the output Euclidean distance data format to FP so I can get an output as FP?

Here is the line of code I'm using in the script:

OutEucDistance = (EucDistance(src_layer, "", resolution, "")*0.000621371192)

Thanks for the help,