Homepage GitHub

How do I convert uint16_t into a float16


(Skyyuzhang) #1

I found that many data tpye is float16 actually it is my first heard of float16 . my adc data length is uint16_t so
How do I convert uint16_t into a float16 thanyou!!!


(Pavel Kirienko) #2

Convert your integer to the native float type first, then use canardConvertNativeFloatToFloat16:


(Skyyuzhang) #3

thank you!!!!!