Lines Matching full:stof
15 // float stof(const string& str, size_t *idx = 0);
16 // float stof(const wstring& str, size_t *idx = 0);
24 assert(std::stof("0") == 0);
25 assert(std::stof(L"0") == 0);
26 assert(std::stof("-0") == 0);
27 assert(std::stof(L"-0") == 0);
28 assert(std::stof("-10") == -10);
29 assert(std::stof(L"-10.5") == -10.5);
30 assert(std::stof(" 10") == 10);
31 assert(std::stof(L" 10") == 10);
33 assert(std::stof("10g", &idx) == 10);
36 assert(std::stof(L"10g", &idx) == 10);
41 assert(std::stof("1.e60", &idx) == INFINITY);
50 assert(std::stof(L"1.e60", &idx) == INFINITY);
60 assert(std::stof("1.e360", &idx) == INFINITY);
69 assert(std::stof(L"1.e360", &idx) == INFINITY);
78 assert(std::stof("INF", &idx) == INFINITY);
88 assert(std::stof(L"INF", &idx) == INFINITY);
98 assert(std::isnan(std::stof("NAN", &idx)));
108 assert(std::isnan(std::stof(L"NAN", &idx)));
118 std::stof("", &idx);
127 std::stof(L"", &idx);
136 std::stof(" - 8", &idx);
145 std::stof(L" - 8", &idx);
154 std::stof("a1", &idx);
163 std::stof(L"a1", &idx);