Paste in float, if not float yet, and printf()result:
printf('%.0f', (float) '8.64E+14');
Note that dropping in int will not work, because it does not understand numbers expressed as strings in scientific notation. And on some systems, your given number is too large to fit in an int, so PHP can make it float.
source
share