FLOATw.d Format

Generates a native single-precision, floating-point value by multiplying a number by 10 raised to the dth power.

Category: Numeric
Alignment: Left

Syntax

FLOATw.[d]

Arguments

w

specifies the width of the output field.

Requirement width must be 4

d

specifies the power of 10 by which to multiply the value.

Default 0
Range 0–31

Details

This format is useful in operating environments where a float value is not the same as a truncated double. Values that are written by FLOAT4. typically are those meant to be read by some other external program that runs in your operating environment and that expects these single-precision values. If the value that is to be formatted is a missing value, or if it is out-of-range for a native single-precision, floating-point value, a single-precision value of zero is generated.

Example

Statements
Results1
select put(1,float4.);
0000803F
1The result is a hexadecimal representation of a binary number that is stored in IEEE form.

See Also

Formats: