2025/04/02

Newest at the top

2025-04-02 19:40:17 +0200 <c_wraith> Uh. I suppose I actually mean > 8, < 10
2025-04-02 19:39:44 +0200 <int-e> but the least significant bit has 2x more weight between 2 and 4 than between 1 and 2, so there are cases where you can round more.
2025-04-02 19:39:32 +0200 <c_wraith> If the number starts with 8 or 9
2025-04-02 19:39:21 +0200 <c_wraith> yeah.. You can get up to 3 bits in the first digit
2025-04-02 19:38:47 +0200 <EvanR> I would think floats is more or less isomorphic between those two intervals. But I guess the relation between decimal and float is not
2025-04-02 19:38:22 +0200irssiRembane
2025-04-02 19:38:04 +0200 <int-e> EvanR: evidence for "this is more likely between 2 and 4 than it is between 1 and 2": https://paste.tomsmeding.com/N7G3UvE3
2025-04-02 19:38:03 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-04-02 19:36:47 +0200irssi(~Rembane@user/Rembane) Rembane
2025-04-02 19:36:12 +0200preflex(~preflex@user/mauke/bot/preflex) (Remote host closed the connection)
2025-04-02 19:36:07 +0200mauke(~mauke@user/mauke) (Remote host closed the connection)
2025-04-02 19:35:58 +0200Rembane(~Rembane@user/Rembane) (Quit: WeeChat 4.1.1)
2025-04-02 19:34:49 +0200 <lambdabot> "1.5833333333333333"
2025-04-02 19:34:47 +0200 <int-e> > show (19/12)
2025-04-02 19:34:13 +0200sprotte24(~sprotte24@p200300d16f1053003d869356f7727199.dip0.t-ipconnect.de) (Ping timeout: 248 seconds)
2025-04-02 19:33:50 +0200 <c_wraith> yeah, it's actually hard to get that behavior from C
2025-04-02 19:33:28 +0200 <EvanR> it doesn't produce "shortest representation that would parse back to the original value"
2025-04-02 19:33:16 +0200 <EvanR> though %g does produce a shorter version if it would end in zeros
2025-04-02 19:32:53 +0200 <EvanR> I guess C is so old they "never thought of it"
2025-04-02 19:32:29 +0200 <lambdabot> 1.141592653589793
2025-04-02 19:32:28 +0200 <int-e> > read "1.1415926535897929" :: Double
2025-04-02 19:32:14 +0200 <EvanR> c_wraith, right, it seems many languages do this
2025-04-02 19:32:03 +0200 <lambdabot> 1.141592653589793
2025-04-02 19:32:01 +0200 <EvanR> > read "1.1415926535897930" :: Double
2025-04-02 19:31:55 +0200 <lambdabot> 1.1415926535897931
2025-04-02 19:31:54 +0200 <EvanR> > read "1.1415926535897931" :: Double
2025-04-02 19:31:45 +0200 <c_wraith> technically, its operating constraint is that it produces the shortest decimal that parses back to the same bit pattern.
2025-04-02 19:31:25 +0200 <EvanR> note to self not a great "random irrational"
2025-04-02 19:31:11 +0200sprotte24_(~sprotte24@p200300d16f105300edc0583ef9378a6d.dip0.t-ipconnect.de)
2025-04-02 19:31:08 +0200 <EvanR> lol, pi is like the only one which is short xD
2025-04-02 19:31:01 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds)
2025-04-02 19:30:55 +0200 <lambdabot> "3.141592653589793"
2025-04-02 19:30:54 +0200peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 252 seconds)
2025-04-02 19:30:54 +0200 <EvanR> > show pi
2025-04-02 19:29:11 +0200 <lambdabot> "1.1415926535897931"
2025-04-02 19:29:09 +0200 <int-e> > show (pi-2) -- checking that theory
2025-04-02 19:28:24 +0200coldmountain(sid484352@id-484352.helmsley.irccloud.com) (Quit: Connection closed for inactivity)
2025-04-02 19:27:39 +0200ash3en(~Thunderbi@ip1f10cbd6.dynamic.kabel-deutschland.de) (Ping timeout: 246 seconds)
2025-04-02 19:27:31 +0200 <int-e> (well, I think)
2025-04-02 19:27:24 +0200 <int-e> (it's less likely to use 16 digits between 1 and 2 than between 2 and 4)
2025-04-02 19:26:51 +0200 <lambdabot> "1.5707963267948966"
2025-04-02 19:26:49 +0200 <int-e> > show (pi / 2)
2025-04-02 19:26:40 +0200 <lambdabot> "2.8284271247461903"
2025-04-02 19:26:38 +0200 <int-e> > show (sqrt 8)
2025-04-02 19:26:17 +0200 <lambdabot> "2.8284271247461903"
2025-04-02 19:26:17 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-04-02 19:26:16 +0200 <int-e> > show (sqrt 8)
2025-04-02 19:25:51 +0200 <EvanR> looking for a float which haskell prints out with 17 sigfigs instead of 16, to see if DBL_DECIMAL_DIG is not full of shit xD
2025-04-02 19:23:12 +0200byte(~mu@user/byte) byte
2025-04-02 19:16:58 +0200byte(~mu@user/byte) (Ping timeout: 272 seconds)