D
D
des1roer2014-08-28 07:30:02
C++ / C#
des1roer, 2014-08-28 07:30:02

Half-precision floating point in C# library?

I receive data in the format Hmax, Qmax, Umax, Vmax, H, Q, U, V values ​​format - a "shortened" version of the IEEE-754 standard format (two-byte mantissa).
That is Half-precision floating point. It is necessary to recode them into a value.
I found such a library, but I have absolutely no idea how to use it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
p1x, 2014-09-04
@des1roer

As far as I can see, one more type is simply defined there - "Half". If I understand correctly, then something in the style:
or

var result = (float)Half.ToHalf(inputBuff, startV);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question