How to get the first two numbers in an integral?
For example: get 12 of the 123456 in PHP or JavaScript?
These are called the the limits of integration, the top one is known as the uppper limit and the bottom one is the lower limit. Essentially, these numbers are substituted into the integral after the integration has been performed. For example.
The area under a curve between two points can be found by doing a definite integral between the two points. To find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.
The number at the bottom of the integral sign is called the lower limit of integration, while the number at the top of the integral sign is called the upper limit of integration. When the area between the function and the horizontal axis isn't made up of nice shapes, it's harder to find the integral.
PHP:
$num = 123456;
echo substr($num, 0, 2);
JavaScript:
alert((123456).toString().substr(0, 2));
JavaScript:
(123456).toString().substr(0,2);
PHP:
substr(123456, 0, 2);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With