Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

how to print pi in a better way? also why does it keep saying my title isnt specific? [closed]

Asked by
Launderer 343 Moderation Voter
6 years ago

idk i get bored and try stuff, one of the stuff was trying to print pi, i did this by doing

print(math.rad(180))

and like it didnt work very well. cuz like it only printed 3.141592653598 and i believe pi has a bit more numbers than that(thats sarcasm if you cant tell) but yea. idk i wanted like my entire dev console to be filled with numbers

Locked by User#19524

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

3 answers

Log in to vote
2
Answered by 6 years ago

The reason for the lack of a large series of numbers is the fact that computers operate on a system of 1s and 0s. Generally the max amount of bits is eight or sixteen. This means that numbers are represented in eight bit as 11111111 or 00000000 or some combination thereof. This means that numbers can only go so far in their length. There is function called math.pi if you are looking for another way to get pi. More on this here if you are interested. Have a great day scripting!

1
I don't think math.pi is a function. User#21908 42 — 6y
1
64 bits is the highest they can go nowadays. 32 bit machines can still handle 64 bit numbers, but it takes a lot more time to deal with them, so I would assume that, if you really wanted to, you could use 128 bit numbers on x64, it would just be really slow. theCJarmy7 1293 — 6y
Ad
Log in to vote
3
Answered by
lunatic5 409 Moderation Voter
6 years ago

https://gyazo.com/6079180983ce856a2269bd8b1b1d7507

0
This is amazing. User#21908 42 — 6y
0
So cool RetroGalacticGamer 331 — 6y
0
I didn't expect that lol RAYAN1565 691 — 6y
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

If you just want to print pi, having it fill your dev console, but don't actually want to do math with it, then you could try going to https://www.piday.org/million/, copy as much pi as you like, and paste it into string form in a print function.