numpunct::decimal_point
Bir ondalık noktası olarak kullanmak üzere bir yerel özel öğeyi döndürür.
CharType decimal_point( ) const;
Dönüş Değeri
Bir ondalık noktası olarak kullanmak üzere bir bölgeye özgü öğesi.
Notlar
Üye işlevi döndüren do_decimal_point.
Örnek
// 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;
};
Gereksinimler
Başlık: <locale>
Namespace: std