std::wcstof, std::wcstod, std::wcstold – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
| definiert in Header <cwchar> |
||
|
|
(seit C++11) | |
|
|
||
|
|
(seit C++11) | |
Legt einen Gleitkommawert in einem breiten String, auf den 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.
Funktion verwirft alle Whitespace-Zeichen (wie std::isspace() bestimmt) bis zum ersten Nicht-Whitespace-Zeichen gefunden wird. Dann dauert es so viele Zeichen wie möglich, um eine gültige Gleitkomma-Darstellung bilden und wandelt sie in Fließkommazahl. Der gültige Gleitkommawert kann eine der folgenden sein:
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.
Gleitpunktberechnungen Ausdruck. Es besteht aus folgenden Teilen:
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.
(optional) Plus-oder Minuszeichen
Original:
(optional) 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.nichtleere Folge von Dezimalziffern gegebenenfalls ein Dezimalzeichen (definiert Mantisse)
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.(optional)
eoderEfolgte mit optional Minus-oder Pluszeichen und nichtleere Folge von Dezimalziffern (definiert Exponent)Original:
(optional)
eorEfollowed 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.
binäre Fließkomma-Ausdruck. Es besteht aus folgenden Teilen:
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.
(optional) Plus-oder Minuszeichen
Original:
(optional) 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.0xor0Xnichtleere Folge von Hexadezimalziffern gegebenenfalls ein Dezimalzeichen (definiert Mantisse)
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.(optional)
poderPfolgte mit optional Minus-oder Pluszeichen und nichtleere Folge von Hexadezimalziffern (definiert Exponent)Original:
(optional)
porPfollowed 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.
infinity Ausdruck. Es besteht aus folgenden Teilen:
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.
(optional) Plus-oder Minuszeichen
Original:
(optional) 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.INFoderINFINITYignorieren FallOriginal:
INForINFINITYignoring caseThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
not-a-number Ausdruck. Es besteht aus folgenden Teilen:
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.
(optional) Plus-oder Minuszeichen
Original:
(optional) 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.NANoderNAN(char_sequence)ignorieren Fall desNANTeil. Char_sequence kann nur alphanumerische Zeichen enthalten. Das Ergebnis ist ein ruhiger NaN Gleitkommawert .Original:
NANorNAN(char_sequence)ignoring case of theNANpart. 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.
Die Funktionen setzt den Zeiger auf die durch str_end auf die weite Zeichen nach dem letzten Zeichen interpretiert zeigen. Wenn str_end NULL ist, wird es ignoriert .
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.
Parameter
| str | - | Zeiger auf die null-terminierte breite Zeichenfolge interpretiert werden Original: pointer to the null-terminated wide string to be interpreted The text has been machine-translated via Google Translate. |
| str_end | - | Zeiger auf einen Zeiger auf eine breite Charakter . Original: pointer to a pointer to a wide character. The text has been machine-translated via Google Translate. |
Rückgabewert
Floating-Point-Wert, der den Inhalt der str auf Erfolg. Wenn der umgewandelte Wert fällt außerhalb der Reichweite des zugehörigen Rückgabetyp tritt Entfernungsfehlers und HUGE_VAL, HUGE_VALF oder HUGE_VALL zurückgegeben. Wenn keine Umwandlung durchgeführt werden kann, wird zurückgegeben 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.