Template Function apex::stof

Function Documentation

template<::size64_t STRING_BUFFER_SIZE>
inline ::float32_t apex::stof(const apex::BaseString<STRING_BUFFER_SIZE> &str) noexcept

Convert a string to a 32-bit float. The function internally uses strtof standard call. See POSIX manpages for the full specs: https://www.unix.com/man-page/posix/3/strtof/.

Parameters

str[in] is input string value

Returns

return float value corresponding to the string value. See strtof documenation. Six significant digits are printed.