z80float
z80float copied to clipboard
A fairly complete floating point library for the Z80 ! Includes 24-, 32-, and 80-bit formats.
;Power of 10 is stored in B, need to put in A first xor a sub b ld de,pow10table+120 jp p,+_ doesn't work with numbers like 1e-2. This works for...
There should be conversion routines for the 24-bit floats (f24). I think maybe: * [x] ~~f24 single ("single" being this lbrary's bastardized format)~~ * [x] ~~f24 binary32~~ * [ ]...
### Higher priority * [x] ~~**f32toa** - Convert an `f32` float to a string to be displayed.~~ * ~~Currently this is emulated by converting the `f32` to a "`single`" and...
The way geometric mean (`sqrt(x*y)`) and arithmetic mean `(a+b)/2` is implemented in this library will erroneously cause overflow with some range of inputs. Neither geometric mean nor arithmetic mean (`geomean`...
f24/f24cos.z80 says cos(0)==0 in the comments. But cos(0)=1