Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   in PHP ganzzahlig teilen bsp.: 2 / 1,5 = 1 (https://www.delphipraxis.net/12134-php-ganzzahlig-teilen-bsp-2-1-5-%3D-1-a.html)

SirThornberry 21. Nov 2003 10:12


in PHP ganzzahlig teilen bsp.: 2 / 1,5 = 1
 
So wie ich in delphi "div" zum ganzzahligen teilen benutzen kann will ich auch in php den nachkomme teil nicht haben. wie geht das?

Wormid 21. Nov 2003 10:49

Re: in PHP ganzzahlig teilen bsp.: 2 / 1,5 = 1
 
Code:
$x = floor(9 / 4);
:hi:


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:12 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