Write a little dll somethig like $dll(mydll.dll,1,<value>,<sigfigs>).
to do this have a string input as param1, and a integer (unsigned to be pedantic) for param 2. then do this:
live:string;
live := value;
If live[sigfigs+1] >= 5 then
live[sigfigs] := live[sigfigs] +1;
setlength(live,sigfigs+1)
result := Pchar(live);
this is only basic code, i thought of 2 bugs(deecimal point probs) whilst writing it here, but you get the gyst!
sorry if you dont know delphi that this is a little irrelevant!