How to avoid #.#E+001 when making Double to String ? lazarus / 9-Editor ---------------------------------------------------------------------- finalist · 2009-11-30 23:40 I am trying to make a Double to String .... for example D := 50.0022 function  DZeroStr(D: Double; Len: Byte): string; var   I:       Int64;   DFrac: Double;   S:       string;   S:       string; begin   I := Trunc(D);   Str(I, S);   DFrac := Len*10*Frac(D);   DFrac := Round(DFrac);   Str(DFrac:Len, T);   while (Length(T)