| **Navigation:**  [[introduction.htm|Language Reference]] > 3 - Variable Declarations > Data Types >====== BFLOAT4 (four-byte signed floating point) ====== | [[real eight byte signed floating point .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[bfloat8 eight byte signed floating point .htm|{{btn_next_n.gif|Next page}}]] | | || | label **BFLOAT4(**[//initial value//]**) **[,**DIM( )**] [,**OVER( )**] [,**NAME( )**] [,**EXTERNAL**] [,**DLL**] [,**STATIC**] || | | [,**THREAD**] [,**AUTO**] [,**PRIVATE**] [,**PROTECTED**] | {{blk2blue.jpg|blk2blue.jpg}} | **BFLOAT4** | A four-byte floating point number. | **Format:   exponent    ±         significand** **      | ........... | . | .................... |** **Bits: 31            23  22                     0** **Range: 0, ± 5.87747e-39 .. ± 1.70141e+38** **  (6 significant digits)** | //initial value// | A numeric constant. If omitted, the initial value is zero, unless the AUTO attribute is present. | | **DIM** | Dimension the variable as an array. | | **OVER** | Share a memory location with another variable. | | **NAME** | Specify an alternate, "external" name for the field. | | **EXTERNAL** | Specify the variable is defined, and its memory is allocated, in an external library. Not valid within FILE, QUEUE, or GROUP declarations. | | **DLL** | Specify the variable is defined in a .DLL. This is required in addition to the EXTERNAL attribute. | | **STATIC** | Specify the variable's memory is permanently allocated. | | **THREAD** | Specify memory for the variable is allocated once for each execution thread. Also implicitly adds the STATIC attribute on Procedure Local data. | | **AUTO** | Specify the variable has no //initial value//. | | **PRIVATE** | Specify the variable is not visible outside the module containing the CLASS methods. Valid only in a CLASS. | | **PROTECTED** | Specify the variable is not visible outside base CLASS and derived CLASS methods. Valid only in a CLASS. | **BFLOAT4** declares a four-byte floating point signed numeric variable, using the Microsoft BASIC (single precision) format. This data type is normally used for compatibility with existing data since it is internally converted to a REAL before all arithmetic operations. **Example:** **Count1 BFLOAT4                         !Declare four-byte signed floating point** **Count2 BFLOAT4,OVER(Count1)            !Declare OVER the four-byte** **                                       !  signed floating point** **Count3 BFLOAT4,DIM(4)                  !Declare array of 4 single-precision reals** **Count4 BFLOAT4(5)                      !Declare with initial value** **Count5 BFLOAT4,EXTERNAL                !Declare as external** **Count6 BFLOAT4,EXTERNAL,DLL            !Declare as external in a .DLL** **Count7 BFLOAT4,NAME('SixCount')        !Declare with external name** **ExampleFile FILE,DRIVER('Btrieve')     !Declare a file** **Record       RECORD** **Count8        BFLOAT4,NAME('Counter')  !Declare with external name** **             END** **            END**