• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I2S - Why have I not noticed before how awesome it is?

Status
Not open for further replies.
Level 13
Joined
May 11, 2008
Messages
1,198
And why is it so hard to find the like of it?
Check this out:
JASS:
call BJDebugMsg(I2S(1027083+939261+816410+669894+655702+644599+637798+590472+561437+537042+509273+505902+481126+477759+476756+414824+411313+405372+405074+389220+389207+371888+363828+361293+359019+354179+347753+343218+331353+327377+323834+316636+315242+313939+301948+300741+297672+291869+288612+283932+279280+272924+268837+268710+268020+267685+266270+263962+262990+259593+257427+256411+253018+251832+251293+250100+247405+245671+237024+230299+221776+221741+218831+208491+200234+199141+195289+194931+192451+190894+190785+189980+188866+183879+179628+173999+173608+173002+168690+167026+165926+162199+161738+160158+159140+149396+147544+145315+139614+133943+131558+128471+126769+126101+122514+121955+118552+112500+102502+100609+98238+95518+93586+88307+82617+75689+63445))
That will come out to 30445754, which is the same as 30,445,754.

But, the question I'm proposing is, why aren't more people adding numbers up like this? I don't understand it. I can easily copy and paste this information into a test map and load up Warcraft 3 and run the map and trigger this message quickly, much more so than by using a regular calculator or by adding the numbers in my head or doing it by hand. So why not take things a step further and eliminate the need for Warcraft 3 and the World Editor? Does anyone have knowledge of such a calculator?
 
Level 14
Joined
Sep 27, 2009
Messages
1,547
Or even better, http://www.wolframalpha.com/

It even solves your homework for you.

fXpLyWE.png
 
Eh? How can it be faster to open a wc3 map, open the trigger editor, create an event to run, put those numbers into a script call, save the map, run wc3, play the map, trigger the event.... than just using a calculator???????

So why not take things a step further and eliminate the need for Warcraft 3 and the World Editor? Does anyone have knowledge of such a calculator?

Uhm, ALL calculators that I have used since my childhood does that... I never needed to code my own calculator for these simple purposes... I only coded my own when I wanted to make a statistical calculator...
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
It only has a precision of a 32 bit int so is pretty much useless for maths. MatLab or its open source GNU equivalent does the same as above but more light weight and more accurately (it supports 64 bit types or vectors). It also can use double precision floats for the computation of reals.

Graphical calculators also do the same and to higher precision.
 
Level 13
Joined
May 11, 2008
Messages
1,198
You know you can do the copy and paste this maths into the calculator that comes with your OS?

really? never seen anyone doing it before. i'm using windows 7, do you know how to do it on that one?

uhmm....nevermind...i figured it out. huh, that's weird, when i tried to do it earlier, it wasn't working. i don't know why it's working now. that's so odd! well, now i look like an idiot.


don't know why you posted this link.

Or even better, http://www.wolframalpha.com/

It even solves your homework for you.

fXpLyWE.png

didn't work. the string was too long for it.

1027083+939261+816410+669894+655702+644599+637798+590472+561437+537042+509273+505902+481126+477759+476756+414824+411313+405372+405074+389220+389207+371888+363828+361293+359019+354179+347753+343218+331
that's as far as it got.
It only has a precision of a 32 bit int so is pretty much useless for maths. MatLab or its open source GNU equivalent does the same as above but more light weight and more accurately (it supports 64 bit types or vectors). It also can use double precision floats for the computation of reals.

Graphical calculators also do the same and to higher precision.

i'm guessing you are referring to the wolframalpha program? your use of the pronoun it is a bit mysterious.

Eh? How can it be faster to open a wc3 map, open the trigger editor, create an event to run, put those numbers into a script call, save the map, run wc3, play the map, trigger the event.... than just using a calculator???????



Uhm, ALL calculators that I have used since my childhood does that... I never needed to code my own calculator for these simple purposes... I only coded my own when I wanted to make a statistical calculator...

so, if you were told to calculate all these with your own calculator, you are sure you wouldn't make a mistake?
1027083+939261+816410+669894+655702+644599+637798+590472+561437+537042+509273+505902+481126+477759+476756+414824+411313+405372+405074+389220+389207+371888+363828+361293+359019+354179+347753+343218+331353+327377+323834+316636+315242+313939+301948+300741+297672+291869+288612+283932+279280+272924+268837+268710+268020+267685+266270+263962+262990+259593+257427+256411+253018+251832+251293+250100+247405+245671+237024+230299+221776+221741+218831+208491+200234+199141+195289+194931+192451+190894+190785+189980+188866+183879+179628+173999+173608+173002+168690+167026+165926+162199+161738+160158+159140+149396+147544+145315+139614+133943+131558+128471+126769+126101+122514+121955+118552+112500+102502+100609+98238+95518+93586+88307+82617+75689+63445

do you even realize how many numbers that is and how many digits they have? don't be absurd.
 
Last edited:
Level 29
Joined
Jul 29, 2007
Messages
5,174
Oh, so you usually go around adding 87 different arbitrary numbers? Your calculations must be very meaningful.
Now, if you actually have anything with a meaning, do try using wolfram|alpha or really any kind of calculator.

The result is 30388653 by the way.
 
Level 14
Joined
Sep 27, 2009
Messages
1,547
didn't work. the string was too long for it.

1027083+939261+816410+669894+655702+644599+637798+590472+561437+537042+509273+505902+481126+477759+476756+414824+411313+405372+405074+389220+389207+371888+363828+361293+359019+354179+347753+343218+331
that's as far as it got.


Well, WolframAlpha is pretty good if you want to actually calculate something, not just enter some stupid long-ass adding calculations. You can also input more if you get the Pro membership.

And by the way, you can just literally paste that into Google search and it'll give you the result.
 
Well, WolframAlpha is pretty good if you want to actually calculate something, not just enter some stupid long-ass adding calculations. You can also input more if you get the Pro membership.

And by the way, you can just literally paste that into Google search and it'll give you the result.

Don't forget max URL length.
 
Level 22
Joined
Feb 3, 2009
Messages
3,292
Pretty much any programming language can do this.

Code:
> print(1027083+939261+816410+669894+655702+644599+637798+590472+561437+537042+509273+505902+481126+477759+476756+414824+411313+405372+405074+389220+389207+371888+363828+361293+359019+354179+347753+343218+331353+327377+323834+316636+315242+313939+301948+300741+297672+291869+288612+283932+279280+272924+268837+268710+268020+267685+266270+263962+262990+259593+257427+256411+253018+251832+251293+250100+247405+245671+237024+230299+221776+221741+218831+208491+200234+199141+195289+194931+192451+190894+190785+189980+188866+183879+179628+173999+173608+173002+168690+167026+165926+162199+161738+160158+159140+149396+147544+145315+139614+133943+131558+128471+126769+126101+122514+121955+118552+112500+102502+100609+98238+95518+93586+88307+82617+75689+63445)

C:\Python33\python.exe "C:/Users/GHH/PycharmProjects/Domace Naloge/Work/DS.py"
30445754

Process finished with exit code 0
 
Status
Not open for further replies.
Top