LarsFosdal icon

Linux 64 Math Delphi

LarsFosdal | PRO | 03/23/17 02:28:30 PM UTC | 0 ⭐ | 10413 👁️ | Never ⏰ | []
Delphi |

440 B

|

None

|

0 👍

/

0 👎

program FloatingPointTest;
 
{$APPTYPE CONSOLE}
 
{$R *.res}
 
uses
  System.SysUtils;
 
function InitA:Double;
begin
  Result := 1.5;
end;
 
function InitB:Double;
begin
  Result := 2.5;
end;
 
procedure TestMul;
var
  a, b, c: Double;
begin
  a := InitA;
  b := InitB;
  c := a * b;
  writeln(c);
end;
 
begin
  try
    TestMul;
  except
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);
  end;
end.

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎