User talk:Chunes: Difference between revisions
Content deleted Content added
→Quackery Bug Report: new section |
→Quackery Bug Report: update |
||
Line 75: | Line 75: | ||
FYI, rational numbers are off the menu until I fix "round" in bigrat.qky. Guess my testing wasn't as thorough as I thought. It may be a while, mediant rounding is complicated. I'll let you know.--[[User:GordonCharlton|GordonCharlton]] ([[User talk:GordonCharlton|talk]]) 23:02, 26 January 2021 (UTC) |
FYI, rational numbers are off the menu until I fix "round" in bigrat.qky. Guess my testing wasn't as thorough as I thought. It may be a while, mediant rounding is complicated. I'll let you know.--[[User:GordonCharlton|GordonCharlton]] ([[User talk:GordonCharlton|talk]]) 23:02, 26 January 2021 (UTC) |
||
::Well, I have a fix that looks like it might work. But I have no idea why the **** <code>round</code> only works all the time with negative numbers. If you want to play with bigrat before I've convinced myself it's right now, here's what I ''think'' it should be. |
|||
::<lang> [ temp put |
|||
2dup v0< not iff |
|||
[ -v ' -v ] |
|||
else [] |
|||
unrot |
|||
v.initcf |
|||
[ v.nextcf |
|||
dup 0 = dip |
|||
[ dup v.nextdenom |
|||
swap v.nextnumer |
|||
max temp share > ] |
|||
or until ] |
|||
v.getnumer v.getdenom |
|||
rot do |
|||
temp release ] is round ( n/d n --> n/d )</lang>--[[User:GordonCharlton|GordonCharlton]] ([[User talk:GordonCharlton|talk]]) 23:51, 26 January 2021 (UTC) |