Namespace
Varianti

std::wcstof, std::wcstod, std::wcstold

Da cppreference.com.
< cpp‎ | string‎ | wide

 
 
Stringhe libreria
Null-stringhe terminate
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Byte stringhe
Multibyte stringhe
Stringhe larghe
Classi
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
Stringhe larghe null-terminated
Funzioni
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Carattere manipolazione
Original:
Character manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le conversioni in formati numerici
Original:
Conversions to numeric formats
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
wcstof
wcstod
wcstold
Della gestione delle stringhe
Original:
String manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Matrice manipolazione
Original:
Array manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
wmemcpy
wmemmove
wmemcmp
wmemchr
wmemset
 
Elemento definito nell'header <cwchar>
float       wcstof( const wchar_t* str, wchar_t** str_end );
(dal C++11)
double      wcstod( const wchar_t* str, wchar_t** str_end );
long double wcstold( const wchar_t* str, wchar_t** str_end );
(dal C++11)
Interpreta un valore in virgola mobile in una stringa larga puntata da str.
Original:
Interprets a floating point value in a wide string pointed to by str.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funzione scarta eventuali spazi bianchi (come determinato dal std::isspace()) fino al primo carattere non-spazio si trova. Poi ci vuole come numero possibile di caratteri in modo da formare una valida rappresentazione in virgola mobile e li converte in valore in virgola mobile. Il valore di virgola mobile valido può essere uno dei seguenti:
Original:
Function discards any whitespace characters (as determined by std::isspace()) until first non-whitespace character is found. Then it takes as many characters as possible to form a valid floating point representation and converts them to floating point value. The valid floating point value can be one of the following:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • espressione decimale in virgola mobile. Si compone delle seguenti parti:
    Original:
    decimal floating point expression. It consists of the following parts:
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (opzionale) più o segno meno
    Original:
    (opzionale) plus or minus sign
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • sequenza non vuota di cifre decimali eventualmente contenenti un carattere punto decimale (definisce significante)
    Original:
    nonempty sequence of decimal digits optionally containing a decimal point character (defines significand)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (opzionale) e o E seguito con meno opzionali o segno più e la sequenza non vuota di cifre decimali (definisce esponente)
    Original:
    (opzionale) e or E followed with optional minus or plus sign and nonempty sequence of decimal digits (defines exponent)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • binario espressione virgola mobile. Si compone delle seguenti parti:
    Original:
    binary floating point expression. It consists of the following parts:
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (opzionale) più o segno meno
    Original:
    (opzionale) plus or minus sign
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • 0x or 0X
  • sequenza non vuota di cifre esadecimali eventualmente contenenti un carattere punto decimale (definisce significante)
    Original:
    nonempty sequence of hexadecimal digits optionally containing a decimal point character (defines significand)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (opzionale) p o P seguito con meno opzionali o segno più e la sequenza non vuota di cifre esadecimali (definisce esponente)
    Original:
    (opzionale) p or P followed with optional minus or plus sign and nonempty sequence of hexadecimal digits (defines exponent)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • infinito espressione. Si compone delle seguenti parti:
    Original:
    infinity expression. It consists of the following parts:
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (opzionale) più o segno meno
    Original:
    (opzionale) plus or minus sign
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • INF o INFINITY ignorando caso
    Original:
    INF or INFINITY ignoring case
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • not-a-numero di espressione. Si compone delle seguenti parti:
    Original:
    not-a-number expression. It consists of the following parts:
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (opzionale) più o segno meno
    Original:
    (opzionale) plus or minus sign
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • NAN o NAN( char_sequence ) ignorando caso della parte NAN. Char_sequence' può contenere solo caratteri alfanumerici. Il risultato è un tranquillo punto di valore NaN mobile.
    Original:
    NAN or NAN(char_sequence) ignoring case of the NAN part. char_sequence can only contain alphanumeric characters. The result is a quiet NaN floating point value.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
Le funzioni imposta il puntatore puntato da str_end per puntare al carattere esteso oltre l'ultimo carattere interpretato. Se str_end è NULL, viene ignorato.
Original:
The functions sets the pointer pointed to by str_end to point to the wide character past the last character interpreted. If str_end is NULL, it is ignored.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] Parametri

str -
puntatore alla stringa con terminazione null grande per essere interpretato
Original:
pointer to the null-terminated wide string to be interpreted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
str_end -
puntatore a un puntatore a un carattere ampio .
Original:
pointer to a pointer to a wide character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Valore di ritorno

Valore in virgola mobile che corrisponde al contenuto di str in caso di successo. Se il valore convertito cade fuori dalla portata del corrispondente tipo di ritorno, errore di campo si verifica e HUGE_VAL, HUGE_VALF o HUGE_VALL viene restituito. Se la conversione non può essere eseguita, viene restituito 0.
Original:
Floating point value corresponding to the contents of str on success. If the converted value falls out of range of corresponding return type, range error occurs and HUGE_VAL, HUGE_VALF or HUGE_VALL is returned. If no conversion can be performed, 0 is returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Esempio

[modifica] Vedi anche

C documentation for wcstof