TypeScientificDecPlaces Property![](images/bx1234.jpg)
Applies To
fpSpread control
Description
Sets or returns the number of digits allowed to the right of the decimal point in a scientific cell. This property is available at run time only.
Syntax
short CSpreadSheet::GetTypeScientificDecPlaces( );
void CSpreadSheet::SetTypeScientificDecPlaces(short value);
[form.]fpSpread.TypeScientificDecPlaces[ = value%]
Remarks
The default value for the TypeScientificDecPlaces property is zero decimal places. The maximum total number of numerals in the cell is 14.
To use the TypeScientificDecPlaces property, specify the sheet with which you want to work by setting the Sheet property. Then specify the cell or cells to which to apply the property, as described in Using Column and Row Properties. Once you set the TypeScientificDecPlaces property for a cell or cells, any subsequent currency cells you create will use the same TypeScientificDecPlaces setting unless you reset it for those cells.
The TypeScientificDecPlaces property does not have an effect unless the CellType property is set to 15 (Scientific) for the specified cell or cells.
You can specify a different character to display as the decimal point by setting the TypeScientificDecimal property.
Spread Designer
Choose the Cell menu, the Cell Type menu, the Scientific menu, and then the Settings tab, and then type a number in the Decimal Places edit box in the Cell Type Settings dialog box.
Data Type
Integer
See Also
Creating and Customizing a Scientific Notation Cell
CellType, Sheet, TypeScientificDecimal, TypeScientificMax, TypeScientificMin properties
DLL Correspondence
SSSetTypeScientific function