setScale

Retains the previous certain number of digits in a double-precision floating-point number.

The default is five digits.

Return

Double with a certain number of digits after the decimal point.

Parameters

newScale

The number of reserved digits, counting from the first digit after the decimal point.


Retains the previous certain number of digits in a single-precision floating-point number.

The default is five digits.

Return

Double with a certain number of digits after the decimal point.

Parameters

newScale

The number of reserved digits, counting from the first digit after the decimal point.