[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



[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.