[fpc-devel]bug or feature?
����� ����������
romh at rambler.ru
Sat Feb 3 20:47:13 CET 2001
Hello, i'm not subscribed to fpc's mailing list, so it would be great if answer
would be forwarded to my e-mail. the problem is:
------------------------------------------------------------
[dr at dr.lnx.home.kz][dr]$> cat d.pas
begin
writeln(round(9/2));
end.
[dr at dr.lnx.home.kz][dr]$> fpc d.pas
Free Pascal Compiler version 1.0.4 [2000/12/18] for i386
Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling d.pas
Assembling program
Linking d
3 Lines compiled, 1.7 sec
[dr at dr.lnx.home.kz][dr]$> ./d
4
[dr at dr.lnx.home.kz][dr]$> fpc -So d.pas
Free Pascal Compiler version 1.0.4 [2000/12/18] for i386
Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling d.pas
Assembling program
Linking d
3 Lines compiled, 1.6 sec
[dr at dr.lnx.home.kz][dr]$> ./d
4
[dr at dr.lnx.home.kz][dr]$>
------------------------------------------------------------
afair round() should round values, but not truncate.
.... WBR, Roman Hlynovski
----
Бесплатная почтовая служба http://mail.Rambler.ru/
Тетя Ася? Rambler Ego! http://www.rambler.ru/odigo/download.html
More information about the fpc-devel
mailing list