I'm trying to create a report that will estimate our cost to a taxi vendor. I have the exact mileage, however I need to round to the nearest 1/8 of a mile.
Does anyone have any idea how to do that either is Crystal Reports formula or SQL?
Software/Hardware used:
Crystal Report 8.5 for Windows on SQL Server 2005
ASKED:
August 11, 2010 1:59 AM
UPDATED:
August 12, 2010 2:13 PM
Assuming the the MILES field in file MILESFILE is decimal(7,2)… Something like this will give you a whole number representing the eighths… Since you’re rounding, obviously you’ll need to handle the 8/8ths situation…
Will yield this: