Paul L on Nostr: This also leads to why floating point binary doesn't have exact representations for ...
This also leads to why floating point binary doesn't have exact representations for most decimal fractions other than 0.5, 0.25 and other combinations of negative powers of 2.
In the classic example even 0.1 would be need an infinite recurring binary fraction in the mantissa.
Published at
2024-07-12 09:43:48Event JSON
{
"id": "3ea7c1b94b43babac32960fb7908da15a0eed42ff352fe629736c27f3125a2cf",
"pubkey": "7b6a8979b02d671d6244555a4686dc1997c97c08b203591b18e1ebd22fec41c5",
"created_at": 1720777428,
"kind": 1,
"tags": [
[
"proxy",
"https://hostux.social/@prlzx/112772869581280683",
"web"
],
[
"p",
"3ebe8ca6d34cec8262f34cbb3c026cadaa41b446efea7d7dcf09de2d337fc90a"
],
[
"e",
"52c33e30685511bfdd2f447b16dc9433de38cb83173529c4b6a1a107349176f8",
"",
"root"
],
[
"proxy",
"https://hostux.social/users/prlzx/statuses/112772869581280683",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://hostux.social/users/prlzx/statuses/112772869581280683",
"pink.momostr"
],
[
"-"
]
],
"content": "This also leads to why floating point binary doesn't have exact representations for most decimal fractions other than 0.5, 0.25 and other combinations of negative powers of 2.\n\nIn the classic example even 0.1 would be need an infinite recurring binary fraction in the mantissa.",
"sig": "a695bd01c80eef10bd0a1a26b3e786ba44b81c2c203bd6904d6f9293778a585eb050b07c18119190bfad082e1abfa204b1ba27bf867a0f4c16ea26ca63f43b8e"
}