Skip to content

Commit 759aaf5

Browse files
refactor: reverted rounding funcion to local code
1 parent a8636eb commit 759aaf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/dcornelius/src/udmChallengeWithFireDAC.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface
1818
FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client,
1919
FireDAC.Stan.ExprFuncs, FireDAC.Phys.SQLiteWrapper.Stat, FireDAC.Phys.SQLiteDef, FireDAC.UI.Intf, FireDAC.Stan.Def,
2020
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.SQLite, FireDAC.ConsoleUI.Wait,
21-
FireDAC.Phys.SQLiteVDataSet, FireDAC.DApt, Baseline.Common;
21+
FireDAC.Phys.SQLiteVDataSet, FireDAC.DApt;
2222

2323
type
2424
TdmChallengeWithFireDAC = class(TDataModule)
@@ -55,7 +55,7 @@ procedure ChallengeWithFireDAC;
5555

5656
function OutputLine: string;
5757
begin
58-
var MeanTemp := RoundExDouble(dmChallengeWithFireDAC.qryCityTempsSumTemp.AsFloat /
58+
var MeanTemp := ChallengeCommon.PascalRound(dmChallengeWithFireDAC.qryCityTempsSumTemp.AsFloat /
5959
dmChallengeWithFireDAC.qryCityTempsTempCount.AsFloat);
6060
Result := Format('%s=%0.1f/%0.1f/%0.1f',
6161
[dmChallengeWithFireDAC.qryCityTempsCityName.AsString,

0 commit comments

Comments
 (0)