Searched refs:FloatToString (Results 1 – 9 of 9) sorted by relevance
/third_party/skia/third_party/externals/tint/src/writer/ |
D | float_to_string_test.cc | 47 EXPECT_EQ(FloatToString(0.0f), "0.0"); in TEST() 51 EXPECT_EQ(FloatToString(1.0f), "1.0"); in TEST() 55 EXPECT_EQ(FloatToString(-1.0f), "-1.0"); in TEST() 59 EXPECT_EQ(FloatToString(1e9f), "1000000000.0"); in TEST() 63 EXPECT_NE(FloatToString(std::numeric_limits<float>::epsilon()), "0.0"); in TEST() 73 EXPECT_EQ(FloatToString(std::numeric_limits<float>::max()), in TEST() 87 EXPECT_EQ(FloatToString(std::numeric_limits<float>::lowest()), in TEST() 92 EXPECT_EQ(FloatToString(1e-8f), "0.00000001"); in TEST() 93 EXPECT_EQ(FloatToString(1e-9f), "0.000000001"); in TEST() 94 EXPECT_EQ(FloatToString(1e-10f), "1.00000001e-10"); in TEST() [all …]
|
D | float_to_string.cc | 29 std::string FloatToString(float f) { in FloatToString() function 79 ss << FloatToString(f); in FloatToBitPreservingString()
|
D | float_to_string.h | 29 std::string FloatToString(float f);
|
/third_party/flatbuffers/include/flatbuffers/ |
D | util.h | 164 template<typename T> std::string FloatToString(T t, int precision) { in FloatToString() function 192 return FloatToString(t, 12); 195 return FloatToString(t, 6);
|
/third_party/protobuf/src/google/protobuf/compiler/js/ |
D | js_generator.cc | 789 std::string FloatToString(float value) { in FloatToString() function 852 return FloatToString(field->default_value_float()); in JSFieldDefault()
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
D | generator_impl.cc | 1500 out << FloatToString(fl->value) << "f"; in EmitLiteral()
|
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
D | generator_impl.cc | 1999 out << FloatToString(fl->value) << "f"; in EmitLiteral()
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl.cc | 2986 out << FloatToString(fl->value) << "f"; in EmitLiteral()
|
/third_party/flatbuffers/src/ |
D | idl_parser.cpp | 3629 value.constant = FloatToString(field->default_real(), 16); in Deserialize()
|