Gustavo André dos Santos Lopes
89da1ab1e8
- Reverted r301991, which is a (partial) fix to bug #52550 , addressing an
...
overflow in a signed subtraction. This fixes the overflow without
changing the algorithm.
2011-06-12 00:56:18 +00:00
Dmitry Stogov
7da89df267
Fixed comilation on x86_64
2011-05-24 08:27:36 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Adam Harvey
d2263d482d
Implement FR #53457 (number_format must support more than one character for
...
thousands separator).
2010-12-03 10:10:08 +00:00
Ilia Alshanetsky
d9af17b839
Additional fix for bug #52550 & fix test & warning from previous fixes
2010-08-08 15:45:02 +00:00
Felipe Pena
232ae3df01
- Fix build
2010-08-06 22:21:13 +00:00
Ilia Alshanetsky
a8ddaca0b0
WS
2010-08-06 20:16:11 +00:00
Ilia Alshanetsky
34e8b615ed
Another fix for issue indentified in bug #52550
2010-08-06 20:04:29 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Dmitry Stogov
31c0af245e
Fixed floating point mathematic speed degradation (Christian)
2009-03-18 10:18:10 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Christian Seiler
2e32354456
- MFH: Implemented http://wiki.php.net/rfc/rounding
2008-12-02 16:27:15 +00:00
Ilia Alshanetsky
22f3c8b05b
Fixed bug #42294 (Unified solution for round() based on C99 round)
...
[DOC] New implementation of round() to work-around inconsistencies for win32
and 64 bit platforms.
This solution is very roughly based on BSD's implmentation of round(), which
itself is an implementation of C99 standard. We take the absolute value of number
we want to round time the 10 to the power of the number of decimal spaces we are
rounding to. The resulting value is rounded up and the pre-rounded value is
subtracted from it. If the difference is greater then 0.5000000001 we round up,
otherwise we round down.
2008-10-29 20:03:34 +00:00
Arnaud Le Blanc
d69dfa4b9f
MFH: initialize optional vars
2008-10-21 22:08:38 +00:00
Matt Wilmas
01afb02bad
Fix build
2008-05-08 04:23:26 +00:00
Kalle Sommer Nielsen
ed7e0c0dff
* Changed php_*h() to be static
...
* Changed NEWS entry to be say 'native' insted of 'Windows' (ref. *h())
2008-05-06 10:55:49 +00:00
Derick Rethans
af371c9f5e
- Fixed build.
2008-05-05 10:09:54 +00:00
Kalle Sommer Nielsen
f61731874a
Merge PHP_5_3 - Implemented Windows support for asinh(), acosh(), atanh(), log1p() and expm1()
...
[DOC] Merge_5_3
2008-05-05 07:29:41 +00:00
Felipe Pena
9139e74a60
New parameter parsing [DOC]
2008-02-21 17:50:03 +00:00
Antony Dovgal
fe4e73238a
ws->tab fixes
2008-02-21 11:53:34 +00:00
Zoe Slattery
5932b49990
Fixing 44092
2008-02-12 07:15:40 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Ilia Alshanetsky
6f694fab9a
Simplify code
2007-05-23 15:01:00 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
52d53543ac
Allocation safety checks
2006-12-25 22:36:57 +00:00
Ilia Alshanetsky
fd8f758ecd
Fixed bug #39873 (number_format() breaks with locale & decimal points).
2006-12-22 04:03:15 +00:00
Hannes Magnusson
2d3056e94f
MFH:
...
- Fixed bug #33895 (missing math constants).
- Remove M_PI from math.c (its defined in php_math.h)
2006-08-27 19:14:43 +00:00
Marcus Boerger
dc571fa9e2
- MFH Fixed Bug #29538 number_format and problem with 0
2006-07-16 10:50:58 +00:00
Antony Dovgal
bccf4bd9e7
MFH: initialize variables and reduce the number of warnings
2006-02-06 11:28:41 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
a5c41b2c8e
- Fixed bug #33917 (number_format() output with > 1 char separators)
2005-07-29 12:58:25 +00:00
Andrey Hristov
0e459321bf
move math_standard_deviation and math_variance to the stats PECL extension
2005-05-13 10:11:19 +00:00
Andrey Hristov
f12b14078e
rename math_std_dev to math_standard_deviation (the API wasn't published
...
yet)
2005-05-10 12:50:53 +00:00
foobar
b3f5a2dca4
ws + cs + proto fixes
2005-05-07 16:08:03 +00:00
Andrey Hristov
8cd3409b30
update protos
2005-05-07 12:41:56 +00:00
foobar
31a8c58911
fix proto
2005-05-05 23:42:03 +00:00
Andrey Hristov
7a0b3edbe0
fixed div by zero
...
#div by zero is bad...div by zero is bad...bad
2005-05-02 12:32:21 +00:00
Andrey Hristov
2c0959689b
add possibility to calculate the standard deviation and the variance
...
on a sample - the formulae are slightly different.
2005-05-02 12:29:38 +00:00
Andrey Hristov
7a4eb25870
add also math_variance() which uses the same calculation as math_std_dev()
2005-05-02 12:12:04 +00:00
Andrey Hristov
6141c5690d
fix division by zero. throw an warning if the array is empty.
2005-05-02 11:01:14 +00:00
Andrey Hristov
fb0c19da1c
add math_std_dev()
2005-05-02 09:17:49 +00:00
Ilia Alshanetsky
6d7cac7731
Fixed bug #28228 (NULL decimal separator is not being handled correctly).
2004-12-14 00:37:19 +00:00
Wez Furlong
31a17d9044
Enable hypot for all
2004-09-20 22:08:06 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Ilia Alshanetsky
b9fc9a6ad1
hypot() is not experimental.
2004-06-10 19:38:24 +00:00
Ilia Alshanetsky
396bf39311
Fixed bug #28508 (Do not make hypot() available if not supported by libc).
2004-05-24 17:02:12 +00:00
Ilia Alshanetsky
91e9545f4f
Fixed bug #28228 (number_format() does not allow empty decimal separator).
2004-04-30 13:26:01 +00:00
Ard Biesheuvel
cc924cad9d
Nuke unused vars
2004-03-10 15:59:50 +00:00
Ard Biesheuvel
e6281ab38b
Don't use fp arithmetic for int results
...
# FP arithmetic is not accurate enough on 64-bit archs
# This patch relies on ZEND_SIGNED_MULTIPLY_LONG(),
# so that should be fixed as well.
2004-03-10 15:57:49 +00:00