Discuss Scratch

ev3coolexit987654
Scratcher
1000+ posts

forever {helloworld}, made epic

link
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

ev3coolexit987654 wrote:

link
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”…
It doesn't work for me…

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

ev3coolexit987654 wrote:

var x=1767707668033969
var y=3656158440062975
alert((x/y).toString(36))
Fixed, needed brackets around (x / y)

Not yet a Knight of the Mu Calculus.
__init__
Scratcher
1000+ posts

forever {helloworld}, made epic

I get 0.helloworldj

thisandagain pls explain
chuckdaboss
Scratcher
100+ posts

forever {helloworld}, made epic

in what language? wolfram alpha right?

CHUCK Gotta go fast The 60 sec rule prevents me from going fast. <–click to play







Jonathan50
Scratcher
1000+ posts

forever {helloworld}, made epic

chuckdaboss wrote:

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

__init__ wrote:

I get 0.helloworldj

NoMod-Programming wrote:

It doesn't work for me…
Floating points…

Last edited by ev3coolexit987654 (Nov. 2, 2015 02:11:14)

NickyNouse
Scratcher
1000+ posts

forever {helloworld}, made epic

Powered by DjangoBB