Compartilhar via


numpunct::decimal_point

Returns a locale-specific element to use as a decimal point.

CharType decimal_point( ) const;

Return Value

A locale-specific element to use as a decimal point.

Remarks

The member function returns do_decimal_point.

Example

// 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;
};
German_Germany.1252 decimal point ,
German_Germany.1252 thousands separator .

Requirements

Header: <locale>

Namespace: std

See Also

Reference

numpunct Class