Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f32] Add conversion routines. #29

Open
20 of 22 tasks
Zeda opened this issue Feb 28, 2021 · 0 comments
Open
20 of 22 tasks

[f32] Add conversion routines. #29

Zeda opened this issue Feb 28, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Zeda
Copy link
Owner

Zeda commented Feb 28, 2021

Higher priority

  • f32toa - Convert an f32 float to a string to be displayed.
    • Currently this is emulated by converting the f32 to a "single" and then using singletostr to convert to a string. This means that the f32 library requires mulSingle and the single constants instead of using the already available f32mul and f32 constants.
  • atof32 - convert a string to an f32 float.

Integer conversions

  • f32toi8
  • i8tof32
  • f32toi16
  • i16tof32
  • f32tou8
  • u8tof32
  • f32tou16
  • u16tof32

Conversions between floats

  • f32tosingle
  • singletof32
  • f32tof24
  • f24tof32
  • f32tof16
  • f16tof32
  • f32tox
  • xtof32
  • f32tof64
  • f64tof32
  • f32toTIFloat
  • TIFloattof32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant