FORTH for the PC-G850(V)(S)
|
12-07-2022, 03:07 AM
Post: #11
|
|||
|
|||
RE: FORTH for the PC-G850(V)(S)
(11-29-2022 07:56 PM)robve Wrote: I may extend the library to support INF/NAN and banker's rounding to make it compliant with IEEE 754. Right now, the only observable difference is the rounding (lack thereof). I rewrote part of the Z80 IEEE 754 math core today to add two proper IEEE 754 rounding modes to choose from (at compile time):
Adding INF/NAN is should actually be easy with some logic to test these special cases. I could make it an option. But I prefer to have exceptions in Forth to catch floating point overflow, division by zero etc. so signaling NaN and INF exceptions. With internal proper round to nearest, ties to even the new sine plot is perfectly symmetric on close inspection: A bit surprised myself that I was able to pull this off, as I was already using all Z80 registers - Rob "I count on old friends" -- HP 71B,Prime|Ti VOY200,Nspire CXII CAS|Casio fx-CG50...|Sharp PC-G850,E500,2500,1500,14xx,13xx,12xx... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)