z80float
z80float copied to clipboard
[f32] Add conversion routines.
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 then usingsingletostr
to convert to a string. This means that thef32
library requiresmulSingle
and thesingle
constants instead of using the already availablef32mul
andf32
constants.~~
- ~~Currently this is emulated by converting the
- [x] ~~atof32 - convert a string to an f32 float.~~
Integer conversions
- [x] ~~f32toi8~~
- [x] ~~i8tof32~~
- [x] ~~f32toi16~~
- [x] ~~i16tof32~~
- [x] ~~f32tou8~~
- [x] ~~u8tof32~~
- [x] ~~f32tou16~~
- [x] ~~u16tof32~~
Conversions between floats
- [x] ~~f32tosingle~~
- [x] ~~singletof32~~
- [x] ~~f32tof24~~
- [x] ~~f24tof32~~
- [x] ~~f32tof16~~
- [x] ~~f16tof32~~
- [x] ~~f32tox~~
- [x] ~~xtof32~~
- [x] ~~f32tof64~~
- [x] ~~f64tof32~~
- [ ] f32toTIFloat
- [ ] TIFloattof32