1
{ test by Graeme Geldenhuys }
13
DecimalSeparator:='.';
15
Result := FloatToStrF(e, ffGeneral, 15, 0);
16
// Memo1.Lines.Add(Result); { prints 234.502 }
18
if (result <> '234.502') then
22
Result := FloatToStrF(r, ffGeneral, 15, 0);
23
// Memo1.Lines.Add(Result); { prints 234.50200000000001 }
25
if (result <> '234.502') then
29
Result := FloatToStrF(r, ffGeneral, 15, 0);
30
// Memo1.Lines.Add(Result); { prints 234.501 Why does this work? }
32
if (result <> '234.501') then
36
Result := FloatToStrF(r, ffGeneral, 15, 0);
37
// Memo1.Lines.Add(Result); { prints 7.502 }
39
if (result <> '7.502') then
43
Result := FloatToStrF(r, ffGeneral, 15, 0);
44
// Memo1.Lines.Add(Result); { prints 8.502000000000001 }
46
if (result <> '8.502') then