fpc/tests/webtbf/tw4778a.pp
Jonas Maebe 92c389aaeb * fixed web bug #4778 (explicit type casting of float to int in tp/delphi
keeps the bit pattern instead of converting)

git-svn-id: trunk@2509 -
2006-02-10 11:05:47 +00:00

22 lines
280 B
ObjectPascal

{ %fail }
{ Source provided for Free Pascal Bug Report 4778 }
{ Submitted by "Phil H." on 2006-02-06 }
{ e-mail: pjhess@purdue.edu }
program Test1;
{$mode delphi}
var
AnInt : Integer;
begin
AnInt := 1;
// WriteLn(Single(AnInt));
WriteLn(Double(AnInt));
end.