# PHP floating point history and behaviour.

- Thread: https://externals.io/message/45123
- Original archive: https://news-web.php.net/php.internals/45123
- Started by Lupus Michaelis on 2009-07-28T16:27:22+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45123 — Lupus Michaelis — 2009-07-28T16:27:22+00:00

URL: https://externals.io/message/45123#45123

Hi,

   I'm wondering where the Zend/zend_float.h include file is used. I'm 
interested in because I'm checking the behaviour variation between PHP4 
and PHP5 (*), and floating point management seems to be fixed for all 
platforms in an early version of PHP5 (revision r270301).

   By the way, this alteration change something for Intel 32 bit or 
nothong ? It belongs the IEEE 754 ?

   Thanks !

(*) I'm not guilty.
-- 
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

Seeking for a position <http://lupusmic.org/pro/

---

## #45125 — Kalle Sommer Nielsen — 2009-07-28T16:49:12+00:00

URL: https://externals.io/message/45123#45125 · In reply to: #45123

Hi

2009/7/28 Lupus Michaelis <mickael+php@lupusmic.org>:
>  Hi,
>
>  I'm wondering where the Zend/zend_float.h include file is used. I'm
> interested in because I'm checking the behaviour variation between PHP4 and
> PHP5 (*), and floating point management seems to be fixed for all platforms
> in an early version of PHP5 (revision r270301).
>
>  By the way, this alteration change something for Intel 32 bit or nothong ?
> It belongs the IEEE 754 ?
>

The floating point behaviour was changed in PHP 5.3, as in this RFC by
Christian Seiler (cc'ed):
http://wiki.php.net/rfc/rounding

You can find where the zend_float.h file is included by a simple grep:
C:\php\src\> grep -ri "zend_float" *
Zend/zend_execute_API.c:#include "zend_float.h"
Zend/zend_float.c:#include "zend_float.h"
Zend/zend_float.h:/* $Id: zend_float.h 277398 2009-03-18 10:18:10Z dmitry $ */
Zend/zend_float.h:#ifndef ZEND_FLOAT_H
Zend/zend_float.h:#define ZEND_FLOAT_H

-- 
regrads,

Kalle Sommer Nielsen
kalle@php.net
