moneypunct::decimal_point

返回元素的区域设置特定顺序用作小数点符号。

CharType decimal_point( ) const;

返回值

使用组件提供一个区域设置特定序列作为小数点符号。

备注

成员函数返回 do_decimal_point

示例

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

   const moneypunct < char, true > &mpunct = use_facet 
      < moneypunct < char, true > >(loc);
   cout << loc.name( ) << " international decimal point "
        << mpunct.decimal_point( ) << endl;

   const moneypunct < char, false> &mpunct2 = use_facet 
      < moneypunct < char, false> >(loc);
   cout << loc.name( ) << " domestic decimal point "
        << mpunct2.decimal_point( ) << endl;
}
  

要求

标头: <locale>

命名空间: std

请参见

参考

moneypunct Class