Editing Talk:2319: Large Number Formats

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 95: Line 95:
  
 
Re: Software developer, the "power" operand varies wildly across programming languages, some do indeed use ^, some go for ** and some have to resort to something like a pow(x,y) function, but in the languages/dialects I use most the ** operator binds closer than (has order of precedence over) the * operator, so x*10**y would not be (10x)<sup>y</sup> as currently suggested in the Explanation. But ^ is the bitwise operator (lower precedence than *), so would do something even more 'interesting' to the result. Now, obviously, different codes for different coves and all - but I'm dredging my memory for all kinds of obscure scripting languages I've not used for years (what does COBOL do..? Forth is Reverse Polish. Lisp(is(more(Forward(Polish))))) not sure which one Randall is basing it on (if it's not just geek-sniping at its finest). [[Special:Contributions/141.101.107.234|141.101.107.234]] 10:47, 14 June 2020 (UTC)
 
Re: Software developer, the "power" operand varies wildly across programming languages, some do indeed use ^, some go for ** and some have to resort to something like a pow(x,y) function, but in the languages/dialects I use most the ** operator binds closer than (has order of precedence over) the * operator, so x*10**y would not be (10x)<sup>y</sup> as currently suggested in the Explanation. But ^ is the bitwise operator (lower precedence than *), so would do something even more 'interesting' to the result. Now, obviously, different codes for different coves and all - but I'm dredging my memory for all kinds of obscure scripting languages I've not used for years (what does COBOL do..? Forth is Reverse Polish. Lisp(is(more(Forward(Polish))))) not sure which one Randall is basing it on (if it's not just geek-sniping at its finest). [[Special:Contributions/141.101.107.234|141.101.107.234]] 10:47, 14 June 2020 (UTC)
: The link I provided for "every common programming language" which someone edited to say "most common programming languages" is a site that shows what some code snippets look like in some huge number of languages that includes all the common ones. That's why I said "every" for supporting the scientific notation with e for the exponent, it really is all of them. There is much more variation in the syntax for exponentiation, more using ** than ^ and quite a few only having a function to call instead of an operator symbol. However, every one that does use ^ for exponentiation would parse x*10^13 be x times the 13th power of 10. [[User:Bugstomper|Bugstomper]] ([[User talk:Bugstomper|talk]]) 06:25, 15 June 2020 (UTC)
 
  
 
Speaking as a set theorist, I'd also describe that number as "Pretty small, just slightly bigger than 1." [[Special:Contributions/162.158.154.73|162.158.154.73]] 11:44, 14 June 2020 (UTC)
 
Speaking as a set theorist, I'd also describe that number as "Pretty small, just slightly bigger than 1." [[Special:Contributions/162.158.154.73|162.158.154.73]] 11:44, 14 June 2020 (UTC)

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Template used on this page: