Skip to main content

Timeline for Bake a slice of Pi

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Sep 19, 2016 at 21:30 comment added Eric Math.PI+'238462643383'+0x9ee105d433fed is sadly no better than Math.PI+'2384626433832795028841971693', and collapsing more digits in drops precision
Sep 19, 2016 at 18:53 comment added anon @Arnauld Ah, I underestimated the size. Thanks for the explanation.
Sep 19, 2016 at 18:31 comment added mbomb007 @Arnauld Yeah, I just figured that out. You can't represent numbers larger than 2**53 as a literal.
Sep 19, 2016 at 18:29 comment added Arnauld @QPaysTaxes - This number is 91-bit long, which is far beyond JS capacity. It could not be converted from/to hexadecimal in a single pass.
Sep 19, 2016 at 18:24 comment added mbomb007 @ElementW What about close numbers? You could multiply or exponentiate to get a close number, then add the difference.
Sep 19, 2016 at 18:20 comment added anon Would writing the number as hex and converting it to a string save any bytes?
Sep 17, 2016 at 17:18 comment added Arnauld @ElementW - Funny that you mentioned it, because I did check that too. :)
Sep 17, 2016 at 17:18 comment added ElementW Mildly interesting, but 2384626433832795028841971693 happens to be prime.
Sep 17, 2016 at 15:03 comment added Arnauld @Titus - You're right. I forgot to count backslash escaping. Thanks!
Sep 17, 2016 at 15:03 history edited Arnauld CC BY-SA 3.0
updated the description
Sep 17, 2016 at 14:28 comment added Titus Isn´t it one byte shorter than console.log("") + 12*11 characters + 18 backslashes + 10 linebreaks?
Sep 17, 2016 at 14:11 history edited Arnauld CC BY-SA 3.0
saved 13 bytes
Sep 17, 2016 at 12:51 history answered Arnauld CC BY-SA 3.0