Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Ln mit Int64 will nicht. Warum? (https://www.delphipraxis.net/137419-ln-mit-int64-will-nicht-warum.html)

Mattze 20. Jul 2009 17:44


Ln mit Int64 will nicht. Warum?
 
Hallo,

wenn ich ln(x) mit x: Int64 aufrufe, sagt er mir: Falscher Typ.
Komisch...

Warum geht das nicht und wie kann ich denn das trotzdem machen?

Gruß
Mattze

Neutral General 20. Jul 2009 17:49

Re: Ln mit Int64 will nicht. Warum?
 
Hi,

Versuchs mal so:

Delphi-Quellcode:
var n64: Int64;
    x: Extended;
begin
  n64 := 999999999;
  x := n64;
  x := ln(x);
end;
Gruß
Neutral General

Mattze 20. Jul 2009 18:44

Re: Ln mit Int64 will nicht. Warum?
 
Aua!!!

Ich wusste ja, dass ich heute KO und müde bin, aber so doll?

Vielen Dank!

Gruß
Mattze


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:12 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz