Integer field as Float



Integer field as Float
Smart pascal source code
type TRec = record I: Integer; end; type TObj = class I: Integer; end; {----- main.pas -----} var P: TRec; F: Float; Begin P.I := 1; var O := TObj.Create; O.I := 2; F := P.I; WriteLn(F); F := O.I; WriteLn(F); { <<< CONSOLE OUTPUTS >>> 1 2 }