Espacios de nombres
Variantes
Acciones

std::strtof, std::strtod, std::strtold

De cppreference.com
< cpp‎ | string‎ | byte

 
 
Strings biblioteca
Terminadas en nulo
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.
Cadenas de bytes
Multibyte cuerdas
Cadenas anchas
Clases
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
 
Terminadas en nulo de bytes
Funciones
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
De manipulación de caracteres
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.
Las conversiones a formatos numéricos
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.
strtoul
strtoull
strtof
strtod
strtold
Cadena de manipulación
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.
strcpy
strncpy
strcat
strncat
strxfrm
Cadena examen
Original:
String examination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Memoria manipulación
Original:
Memory manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memchr
memcmp
memset
memcpy
memmove
Varios
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strerror
 
Defined in header <cstdlib>
float       strtof( const char* str, char** str_end );
(desde C++11)
double      strtod( const char* str, char** str_end );
long double strtold( const char* str, char** str_end );
(desde C++11)
Interpreta un valor de punto flotante en una cadena de bytes que apunta str .
Original:
Interprets a floating point value in a byte 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.
Función descarta los espacios en blanco (según lo determinado por std::isspace()) hasta que primero no está en blanco se encuentra. Luego se toma como caracteres posible para formar una representación válida de punto flotante y los convierte en valor de punto flotante. El valor válido de coma flotante puede ser uno de los siguientes:
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.
  • expresión decimal de coma flotante. Se compone de las siguientes partes:
    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.
  • (opcional) más o el signo menos
    Original:
    (opcional) 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.
  • no vacío secuencia de dígitos decimales que contiene opcionalmente un carácter de punto decimal (define mantisa)
    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.
  • (opcional) e o E seguido con menos opcionales o signo más y la secuencia no vacía de dígitos decimales (define exponente)
    Original:
    (opcional) 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.
  • expresión binaria de punto flotante. Se compone de las siguientes partes:
    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.
  • (opcional) más o el signo menos
    Original:
    (opcional) 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
  • no vacío secuencia de dígitos hexadecimales que contienen opcionalmente un carácter de punto decimal (define mantisa)
    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.
  • (opcional) p o P seguido con menos opcionales o signo más y la secuencia no vacía de dígitos hexadecimales (define exponente)
    Original:
    (opcional) 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 expresión. Se compone de las siguientes partes:
    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.
  • (opcional) más o el signo menos
    Original:
    (opcional) 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 mayúsculas y minúsculas
    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.
  • no-un número-expresión. Se compone de las siguientes partes:
    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.
  • (opcional) más o el signo menos
    Original:
    (opcional) 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 de la parte NAN. Char_sequence' sólo puede contener caracteres alfanuméricos. El resultado es un tranquilo valor NaN punto flotante .
    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.
Las funciones establece el puntero que apunta str_end para que apunte al carácter allá del último carácter interpretado. Si str_end es NULL, se omite .
Original:
The functions sets the pointer pointed to by str_end to point to the 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.

Contenido

[editar] Parámetros

str -
puntero a la cadena terminada en null byte debe ser interpretado
Original:
pointer to the null-terminated byte 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 -
puntero a un puntero a caracter .
Original:
pointer to a pointer to character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Valor de retorno

Flotando valor del punto correspondiente al contenido de str en caso de éxito. Si el valor convertido cae fuera del rango del tipo de cambio correspondiente, se produce error de rango y HUGE_VAL, HUGE_VALF o HUGE_VALL devuelve. Si la conversión no se puede realizar, 0 se devuelve .
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.

[editar] Ejemplo

[editar] Ver también

convierte una cadena de bytes en un valor de punto flotante
Original:
converts a byte string to a 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.

(función) [edit]
C documentation for strtof, strtod, strtold