answersLogoWhite

0

You may use the following code to see how far you can push your computer via storing integers; the biggest integer allowed in PHP actually depends on the system PHP is running on, and how big of an integer it allows in its memory. It's advised that, if you really want to do this, that you turn off PHP output limiting, so then you don't get an exhaustion error. <?php for ($i = 0; TRUE; $i++) { echo $i; } ?>

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

Earn +20 pts
Q: How can I find the biggest integer my computer can handle using PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

What is the largest positive number that can be stored using 8 bits?

An N-bit integer holds 2N different values.For an unsigned integer, the range of values is 0..2N-1 thus.For a signed integer using 2s complement, the range is -2N-1..+2N-1-1.Therefore, the largest positive number that can be stored using 8 bits is 255.


How do you determine the absolute value of a integer?

The absolute value of a number is expressed with the symbol |. To show you want to find the absolute value of an integer(using x as the integer) you would do this |x|. Examples- |2| = 2 |-9| = 9 |325| = 325 |-457245| = 457245


What are the rules for operations with integers?

The basic rules of arithmetic and algebra apply in most cases. That is:Exponentiation is done firstMultiplication and division are done nextFinally, addition and subtraction are done.If two or more operations with the same priority appear together in the same expression, they're handled in left to right order. Parentheses can be used to override the order of operations; expressions in parens are evaluated first.For example, 2*4**2 - 8/4 would be evaluated this way:Do the exponent first: 4**2 = 16. The expression is then 2*16 - 8/4Next do the multiplication and division: 2*16 = 32 and 8/4 = 2Do the subtraction last: 32 - 2, or 30.The only possible difference is in division, IF you're using computer rules for integer operations. Because a fully integer-based expression can only be expressed as another integer, computers perform integer division by truncating any fractional remainder of a quotient. So for example a computer would evaluate 7 / 2 = 3, rather than 3.5. If the numbers were expressed as real numbers the answer would be correct in the algebraic sense, though: 7. / 2. = 3.5


What is the rule for subtracting integers?

if they are two positive numbers, do it normally.If there is a negative and a positive, change it to addition and switch the SECOND integer sign. Only works with two integers in a subtraction question.Example: (-32)-(+2)= (-34) / (-32)+(-2)=(-34)


When a positive integer is raised to the power of zero the answer is always one. Why?

You can understand this by using one rule of exponents. For integers m,n, and positive integer a a^m/a^n=a^(m-n) So if we look at a^m/a^m which must be 1 since it is something divided by itself, we know from the rule we can also write this as a^(n-n)=a^0 but we just showed that was 1.