# Maximum number of digits in a float - 32-bit

I'm making a script that processes PI in PHP. I figured that there is a limit of 13 digits that PHP can process. I tried to find solutions on the internet, and was able to turn this number down, but not up. I think PHP is only 32-bit. Is there a limit on 32-bit frameworks, how many digits they can have in a float value?

-
Look for "arbitrary precision" and the "`--enable-bcmath`" compile time switch. –  Daniel Andersson May 13 '12 at 10:30
Thanks! I found some functions to work that way now. –  Friend of Kim May 13 '12 at 10:33
-1 if you didn't know that 32-bit number is 32 binary digits, and your answer suggests that you didn't, then your question is pathetic. If you'd wondered or meant, what size the number would be in decimal then that'd have been different, but you didn't. But you just wanted to be told that a 32-bit number is 32 binary digits. –  barlop May 13 '12 at 10:42
If only I could downvote you on this question a dozen times, it still wouldn't be enough. –  barlop May 13 '12 at 10:45
@barlop Actually, I did know about it. However, I didn't know how it works in the "real" world. Super-computers are computing Pi to trillions of decimals, and that's why I wondered if there was a maximum limit as to how many digits you could have in a float value. So it seems like there is a hardware limitation of 32, but if you are smart, you can get around it with software. There is no need to be condescending: "If only I could downvote you on this question a dozen times, it still wouldn't be enough." –  Friend of Kim May 13 '12 at 11:56