HDFql Reference Manual v2.6.0

6.7.45SHOW DECIMAL SCALE

Syntax

SHOW DECIMAL SCALE

[post_processing_option]

[output_redirecting_option]

Description

Show (i.e. get) the decimal scale (i.e. number of decimal places) to use when writing fractional numbers into a text or Excel file.

Parameter(s)

post_processing_option – optional option that transforms the result set according to the programmer’s needs, such as ordering or truncating (please refer to the section PROCESSING for additional information).

output_redirecting_option – optional option that specifies the cursor in use, an HDF5 object (i.e. dataset or attribute), a (text, binary, or Excel) file, or memory (i.e. user-defined variable) to write the result set into (please refer to the subsection INTO for additional information). If not specified, the cursor in use is populated with the result set instead (please refer to the chapter CURSOR for additional information).

Return

The decimal scale (i.e. number of decimal places) to use when writing fractional numbers into a text or Excel file as an HDFQL_INT.

Example(s)

# set decimal scale (to use when writing fractional numbers into a text or Excel file) to 2 
SET DECIMAL SCALE 2

# show (i.e. get) decimal scale (to use when writing fractional numbers into a text or Excel file) (should return 2)
SHOW DECIMAL SCALE

# set decimal scale (to use when writing fractional numbers into a text or Excel file) to the default value (i.e. 5)
SET DECIMAL SCALE DEFAULT

# show (i.e. get) decimal scale (to use when writing fractional numbers into a text or Excel file) (should return 5)
SHOW DECIMAL SCALE