How to convert floating point number to hexadecimal representation
I am new VIsual Basic and need to learn how to convert a floating point number, declared as a single, to its internal hexadecimal representation (IEEE 754 32-bit representation). The hexadecimal number will then be transmitted across RS-232 to another controller which interprets the 32-bit hexadecimal data as single precision floating point.
As an example
Global float_input as Single
float_input = 2.5
desired hexadecimal output = &H 40200000

