[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1EHwP8B-2006904077.png (82 KB, 902x478)
82 KB
82 KB PNG
were they a stroke of genius or a mistake? and how come no-one ever tried implementing rational numbers in hardware?
>>
Like a long double?
>>
>>107709755
Pure genius.
>>
>>107709755
rationals are already really fast in software. if you constraint the denominator, all operations become int operations which hardware can already do. This is typically what you do to represent money, e.g : int / 100.

ieee754 is really good, but it has some weird features, like subnormals. it's also extremely non trivial to implement transcendental functions like sin, tan, log, atan etc.. because you either have to use higher precision or rely on weird tricks like IBM's math library does.
>>
>>107710266
forgot links
https://csclub.uwaterloo.ca/~pbarfuss/dekker1971.pdf
https://www.researchgate.net/publication/220492903_An_accurate_elementary_mathematical_library_for_the_IEEE_floating_point_standard
>>
>>107710266
>This is typically what you do to represent money, e.g : int / 100.
wrong
>>
LLM clanker brainrot is only possible because GPUs that support this insane datatype can crunch billions of numbers very fast, so I think it is overall a bad thing, because in all mission critical software, people use fixed point arithmetic without a FPU at all.
>>
>>107709755
>no-one ever tried implementing rational numbers in hardware
That's what floating point is, technically, due simply to the fact of limited precision.
>>
>>107709755
they let me play quake
>>
>>107709755
how else would you implement rational numbers?
>>
>>107710966
>how else would you implement rational numbers?
I'm sure there's some rational solution. You know, like using a numerator and denominator or something.
>>
File: 1751061699912.jpg (177 KB, 1024x1024)
177 KB
177 KB JPG
>float accountBalance;



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.