![]() |
float()
Can anyone tell me if this is supposed to happen and if so, why?
PHP Code:
|
This is known behavior, and I think intentional (would need to contact Stefan for reasoning). It shouldn't be hard to make your own float function which calls the internal float only in the case where all the characters of the string are integers (or decimal points). Not sure about scientific notation and how it handles that.
|
Well this is just silly.
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
int("123str") should really return -1 too
|
Quote:
|
Quote:
|
This is the same behaviour as the various C functions for converting a string to integer or floating point value.
|
Quote:
|
Why the hell does Stefan have to do all the programming for you infants
stefan can you add a function to tie my shoelaces :'( |
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 10:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.