Question : Round number to the nearest .5 in delphi

I've been looking for a Delphi function to emulate the MRound function in Excel.  Basically to  round a number upwards or downwards to a specified multiple.

For example :
MROUND(2.7, 0.5) = 2.5
MROUND(2.2, 0.5) = 2.0
MROUND(0.4,.5) = 0.5

Any ideas?

Answer : Round number to the nearest .5 in delphi

Don't know that I will be of much assistance.  

Looking at the file structure of the Worldship install on my computer, I would think that it is possible to accomplish what you are requesting, IF.....

First of all, you would need to be able to open/expand the .bak file that is generated to get to the files that were backed up.  Then there are .mdf files that SQL Database or Access uses.  If you have a copy of either, you may be able to open and access the databases.  Without knowing which is which, it would be hit or miss to find the proper records.  If they are accessible, then it would be fairly straightforward to export those into a .cvs file and import that into Worldship.

Without UPS support, this would be a job for the database guys, and that only if UPS hasn't locked down their database files.
Random Solutions  
 
programming4us programming4us