Spurious hint when performing divisions on currency values
Original Reporter info from Mantis: SDN
-
Reporter name: SDN
Original Reporter info from Mantis: SDN
- Reporter name: SDN
Description:
The compiler outputs the hint "use DIV instead to get an integer result" when performing a division on a currency value:
program Test;
{$HINTS ON}
var
cur: Currency;
begin
cur := 3.5;
cur := cur / 1.5;
end.
Additional information:
Compiler output:
Free Pascal Compiler version 3.1.1-r20:36723 [2017/07/12] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Win64 for x64
Compiling test.pp
test.pp(9,7) Hint: use DIV instead to get an integer result
Linking test.exe
9 lines compiled, 0.1 sec, 31872 bytes code, 1508 bytes data
1 hint(s) issued
Mantis conversion info:
- Mantis ID: 32139
- OS: Windows 10 Pro
- Platform: x86-64
- Version: 3.1.1
- Monitored by: » Vincent (Vincent Snijders)