Aracılığıyla paylaş


SET POINT Command

Determines the decimal point character used in the display of numeric and currency expressions.

SET POINT TO [cDecimalPointCharacter]

Parameters

  • cDecimalPointCharacter
    Specifies the character for the decimal point.

Remarks

Use SET POINT to change the decimal point from the default, which is a period (.). Issue SET POINT TO without cDecimalPointCharacter to reset the decimal point to a period. Although you can set the displayed decimal point to a different character, you must use a period as the decimal point in calculations.

SET POINT is scoped to the current data session.

Example

gnX = 1.25
gcNewPoint = '_'
SET POINT TO gcNewPoint 
? gnX
SET POINT TO      && Reset the decimal point to a period (.)
? gnX

See Also

Reference

SET DATASESSION Command

SET DECIMALS Command

SET FIXED Command

SET SEPARATOR Command

SET SYSFORMATS Command

SET Command Overview

Other Resources

Commands (Visual FoxPro)

Language Reference (Visual FoxPro)