I set up a script to print some statistics about line segments. The "logfile" is basically the same as "print", but to a textfile instead of on screen only.
LogFile("Feature {0} has a length of {1} meters at coordinates {2}".format(row[0], row[1], row[2]))
This will give me an output like:
Feature 1 has a length of 346.239783695 meters at coordinates (470765.69285000017, 6313169.6829)
I want to drop the decimals (i.e., turn the values into integers for reporting purposes only) and just have
Feature 1 has a length of 346 meters at coordinates (470765, 6313169)
How do I alter the format within the script to accomplish that? I assume it will be super easy and something I should know, but I've been out of the Arc/Python world for a few years.