i found a weird number #232

 
Jmzd8 (edited ) src #2043

i tried to find the exact number that is right on the edge of when a font (more specifically "Lato" (sans-serif)) becomes bold in CSS (font-weight:549; is light while font-weight:550; is bold) and I got 549.99996948242181815658113919198513031005859374999... (the rest is just a repeating 9). now this is most likely very rough and not accurate but it's cool i guess. here's some weird things about it:

  • 7 only appears once in the number
  • 9 is the most common number (13 of them)
  • every number is in it
  • it's very specific
  • only 2 and 4 are the numbers that have the same amount of occurrences as their value (e.g. 2 appears two times, 4 appears four times)

please correct me if i am wrong thank you

ubq323 (bureaucrat) src #2044

this seems like a floating point moment. probably, anything greater than that number you have found will actually be represented as 550, and that and anything smaller than it will be represented as some number slightly smaller than 550. if you wrote the numbers in binary, it'd be the difference between 1000100101.1111...110 and 1000100101.1111...111. i think.

i assume that's what's going on anyway. it might be something completely unrelated

amby src #2046

it wont be a float thing because all floats can be represented perfectly in decimal, and this has infinite repeating nines

taswelll (edited ) src #2049

"all floats can be represented perfectly in decimal"? not sure i understand

taswelll src #2050

binary32 floats have around 7 decimals of precision, that matches up. the repeating 9s in the end might be a quirk of how decimals are parsed in that implementation, maybe it only reads the first few digits

ubq323 (bureaucrat) src #2051

a (binary) float is basically a representation of a number a * (2^b) (where a and b are integers), and any fraction with a denominator that is a power of 2 has a terminating decimal representation.

(any rational number can be represented "perfectly" in decimal, possibly with an infinitely repeating sequence of digits, but i assume by "perfectly" amby means "terminating")

(also any decimal that ends with infinite nines is the same as the one obtained by replacing the nines with zeros and then incrementing the digit before the first 9. eg 0.9999... = 1.0. )

Jmzd8 src #2052

I also found another cool number, which is roughly the number right before javascript says "infinity", and thats 179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791. its very rough and most likely not exact but telling javascript to output this with 1 added to it (you have to add it yourself just adding +1 at the end doesn't change it) but its super huge.

taswelll src #2053

that is 2^127, i think

amby src #2056

floating point infinity is all exponent and mantissa bits set high

so you get +/- infinity from the sign bit

see also +/-0

kit (edited ) src #2060

𝒆 𝒊⋅π = -1

also, 𝒊 𝒊 = 𝒆-π∕2

taswelll src #2061

<var>i</var><var>i</var> = <var>e</var>-<var>π</var>/2

taswelll src #2062

ii = e-π/2

kit src #2065

smh not using proper unicode characters

taswelll src #2066

those are literally bold + the proper one is 𝑒 + those aren't supported by as many fonts + ratio

kit src #2067

i have been played for an absolute fool

taswelll src #2068

more like |fool| haha ha

kit (edited ) src #2069

bash: fool: command not found

bash: haha: command not found

more: cannot open like: No such file or directory

taswelll src #2070

touch like && alias fool='cat' && alias haha='echo'

kit src #2072

ha

bigbenclock src #2416

BONG BONG BONG BONG BONG BONG BONG BONG BONG

Jmzd8 src #2417

talking ben?!!?!?!

citrons (bureaucrat) src #2428

bv

mb src #2430

labiodental affricate

please log in to reply to this thread