Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is also applicable outside of C as well.


"The x_position and y_position can unfortunately not get a smaller type nor can a float be unsigned." If you have latest C++, you can use float16_t or bfloat16_t to get smaller type https://en.cppreference.com/w/cpp/types/floating-point.html


C23 has _Float16




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: