WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 44735401

(no title)

mcraiha | 7 months ago

"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

discuss

order

david2ndaccount|7 months ago

C23 has _Float16
powered by hn/api // news.ycombinator.com