Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   In Delphi, is addition commutative? (https://www.delphipraxis.net/188112-delphi-addition-commutative.html)

DP News-Robot 2. Feb 2016 00:24

In Delphi, is addition commutative?
 
Answer: no, not necessarily. Despite the existence of operator precedence, i.e. the fact that the following X := 3 + 4 * 5; results in 23 and not in 35, the order of operands can still have an effect. In my BigInteger code, I discovered an odd error, that only happened in some very rare cases, ...http://feeds.feedburner.com/~r/delph...~4/lPAjuSQiO1s

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:36 Uhr.

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