numpunct::decimal_point

返回一区域设置特定元素的位置。

CharType decimal_point( ) const;

返回值

使用的区域设置特定元素作为小数点。

备注

成员函数返回。do_decimal_point

示例

// numpunct_decimal_point.cpp
// compile with: /EHsc
#include <locale>
#include <iostream>
#include <sstream>
using namespace std;
int main( )
{
   locale loc( "german_germany" );

   const numpunct <char> &npunct = 
   use_facet <numpunct <char> >( loc);
   cout << loc.name( ) << " decimal point "<< 
   npunct.decimal_point( ) << endl;
   cout << loc.name( ) << " thousands separator " 
   << npunct.thousands_sep( ) << endl;
};
  

要求

页眉: <区域设置>

命名空间: std

请参见

参考

numpunct 类