PLACES Function

Purpose

Returns the model-precision value used to represent the floating-point expression x. Returned value is a FIXED BINARY(31,0).

Syntax

PLACES(x)

Parameters

x
An expression that must be declared as FLOAT.

Examples

Intel values, FLOAT BIN IEEE:

places(x) = 24 for x float bin(p), p <= 23
places(x) = 53 for x float bin(p), 23 < p <= 53
places(x) = 64 for x float bin(p), 53 < p
places(x) = 24 for x float dec(p), p <= 6
places(x) = 53 for x float dec(p), 6 < p <= 16

Intel values, FLOAT DEC DFP:

places(x) = 24 for x float dec(p), p <= 6
places(x) = 53 for x float dec(p), 6 < p <= 16
places(x) = 64 for x float dec(p), 16 < p

Restrictions

None.