databuffer price double vs float vs using real no examples in c#

ilija.mitkov
ilija.mitkov Newcomer

I'm getting totally different values in double and float fields in the databuffer

Type 8 /Real

Double: 3.6758187362220366E+228

Float: 4.28846683E-08

What I'm missing here?



Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @ilija.mitkov

    According to the double output, the data is too big for the float data type. You can refer to the C# data types for more information.

    I am not sure if 3.6758187362220366E+228 is the correct data, or not.

    Has the application checked IsBlank before accessing the data? If the data is blank and the application tries to decode the data, it may return invalid data.

Answers