Re: [Gambas-user] Hex string to float

2008-12-13 Thread hjherbert
... For 32 Float use the "Single" data type. See http://gambasdoc.org/help/cat/datatypes See http://gambasdoc.org/help/lang/type/single The example conversion may be done by this way: PUBLIC SUB DemoSingle() DIM i AS Integer DIM f AS Single DIM hH AS File i = &h3fd5& OPEN "/tmp/hexfloat.tmp

Re: [Gambas-user] Hex string to float

2008-12-13 Thread hjherbert
Float number as you mean are 32 bit float numbers see http://en.wikipedia.org/wiki/Single_precision Float numbers in GAMBAS are 64 bit float numbers see http://en.wikipedia.org/wiki/Double_precision The follow program demonstrates how to convert a 64 Bit long value into a 64 bit gambas FLOAT (=