Question : RoundNumber with rounding off difference

Hi I need a public function to round off numbers to nearest. Output should return the value rounded off and the difference in rounding off. for value 0.50 it should round off to 1 rest are standard rounding off.

Ex:
If i pass input as 3.48, it should return output as 3 and rounding off difference as -0.48
If i pass input as 0.50 it should return output as 1 and rounding off difference as 0.50
if i pass input as 6.78 it should return output as 7 and rounding off differnce as 0.22 and so on

Answer : RoundNumber with rounding off difference

The colour display schemes in XP are reached via the 'Personalization' and are now part of 'Themes'
Random Solutions  
 
programming4us programming4us