Inbuilt function for convert IEEE 754 to decimal
Hi All,
I have to convert a binary 32-bit IEEE 754 floating point to an decimal representation.
Is there any inbuilt function available in Cache 2015.1 version to convert IEEE 754 floating point to decimal representation?
For Example:
Input:
IEEE 754 value => 0 10000111 10111000000000000000000
Output:
After Converting => 440.0
Thanks,
Product version: Caché 2015.1
$ZV: Cache for Windows (x86-64) 2015.1
Discussion (2)0
Comments
Have a look at $SCONVERT:
https://cedocs.intersystems.com/ens201513/csp/docbook/DocBook.UI.Page.c…
USER>set tIEEE=$c(0,0,220,67) // bytes representing 0000000 00000000 11011100 01000011 USER>write $SCONVERT(tIEEE,"F4") 440
Thanks Marc, It works!.