Sign in Join
Wiki copytemporary

SetRoundMode/de

Deutsch · English

SetRoundMode

Mit SetRoundMode kann man die Art des Runden einstellen. Die wird beim Aufruf von Round(...) benötigt.

Syntax:

pascal
function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;

Für RoundMode sind folgende Parameter möglich:

Warning: Die Einstellung des RoundMode findet bei allen internen Gleitkomma-Rechnungen Anwendung. Sie bestimmt insbesondere, wie Zahlen, die nicht exakt als Single/Double/Extended-Werte darstellbar sind, im Rahmen der verfügbaren Bits auf die interne Darstellung zu runden sind. Daher wird die Anwendung von SetRoundMode für allgemeine Rundungszwecke nicht empfohlen.

Siehe auch


From the Free Pascal wiki, page "SetRoundMode/de", as it stood on 2020-01-19 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.