Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » forever {helloworld}, made epic
- ev3coolexit987654
- Scratcher
1000+ posts
forever {helloworld}, made epic
link
This is how to get “helloworld” forever
1. generate 1767707668033969 (code:)
2. store that in x (code:)
3. generate 3656158440062975 (code:)
4. store that in y (code:)
5. compute x/y (code:)
6. convert that to a base 36 number (code:)
7. print that (code:)
prints “0.helloworldhelloworldhelloworld”…
(NOTE: Do not try at home. Stupid floating point precision. )
note to self: (1767707668033969/3656158440062975).toString(36) in repl
This is how to get “helloworld” forever
1. generate 1767707668033969 (code:
1767707668033969
2. store that in x (code:
var x=1767707668033969
3. generate 3656158440062975 (code:
var x=1767707668033969 3656158440062975
4. store that in y (code:
var x=1767707668033969 var y=3656158440062975
5. compute x/y (code:
var x=1767707668033969 var y=3656158440062975 x/y
6. convert that to a base 36 number (code:
var x=1767707668033969 var y=3656158440062975 (x/y).toString(36)
7. print that (code:
var x=1767707668033969 var y=3656158440062975 alert((x/y).toString(36))
prints “0.helloworldhelloworldhelloworld”…
(NOTE: Do not try at home. Stupid floating point precision. )
note to self: (1767707668033969/3656158440062975).toString(36) in repl
Last edited by ev3coolexit987654 (Nov. 2, 2015 20:22:34)
- NoMod-Programming
- Scratcher
1000+ posts
forever {helloworld}, made epic
linkIt doesn't work for me…
This is how to get “helloworld” forever
1. generate 1767707668033969 (code:)1767707668033969
2. store that in x (code:)var x=1767707668033969
3. generate 3656158440062975 (code:)var x=1767707668033969 3656158440062975
4. store that in y (code:)var x=1767707668033969 var y=3656158440062975
5. compute x/y (code:)var x=1767707668033969 var y=3656158440062975 x/y
6. convert that to a base 36 number (code:)var x=1767707668033969 var y=3656158440062975 x/y.toString(36)
7. print that (code:)var x=1767707668033969 var y=3656158440062975 alert(x/y.toString(36))
prints “0.helloworldhelloworldhelloworld”…
Long-since moved on from Scratch, if you need to find all my posts, search this in google: 3499447a51c01fc4dc1e8c3b8182b41cb0e88c67
- Jonathan50
- Scratcher
1000+ posts
forever {helloworld}, made epic
Fixed, needed brackets around (x / y)var x=1767707668033969 var y=3656158440062975 alert((x/y).toString(36))
Not yet a Knight of the Mu Calculus.
- __init__
- Scratcher
1000+ posts
forever {helloworld}, made epic
I get 0.helloworldj
thisandagain pls explain
- Jonathan50
- Scratcher
1000+ posts
forever {helloworld}, made epic
?????? in what language? wolfram alpha right?
it's javascript…
Not yet a Knight of the Mu Calculus.
- MegaApuTurkUltra
- Scratcher
1000+ posts
forever {helloworld}, made epic
Haha this is clever
$(".box-head")[0].textContent = "committing AT crimes since $whenever"
- ev3coolexit987654
- Scratcher
1000+ posts
forever {helloworld}, made epic
I get 0.helloworldj
Floating points… It doesn't work for me…
Last edited by ev3coolexit987654 (Nov. 2, 2015 02:11:14)
- Discussion Forums
- » Advanced Topics
- » forever {helloworld}, made epic