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;
};
要求
标头: <locale>
命名空间: std