This CGI simply allows you to convert between 16-bit LNS (Log Number System) values and their integer representations. In EE480, we have adopted a LNS format that is essentially a sign bit followed by a 15-bit unsigned LNS magnitude. However, the magnitude is encoded with a bias of 0x4000 added and is scaled by 2128. The result is a dynamic range of [2.95469e-39 .. 3.36617e+38]. The LNS value that is all 0 bits is 0. The minimum LNS magnitude with a negative sign represents nan. The maximum LNS magnitude represents +/- inf.
The C program that generated this page was written by Hank Dietz using the CGIC library to implement the CGI interface.