Home
last modified time | relevance | path

Searched refs:FloatToString (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/third_party/externals/tint/src/writer/
Dfloat_to_string_test.cc47 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 …]
Dfloat_to_string.cc29 std::string FloatToString(float f) { in FloatToString() function
79 ss << FloatToString(f); in FloatToBitPreservingString()
Dfloat_to_string.h29 std::string FloatToString(float f);
/third_party/flatbuffers/include/flatbuffers/
Dutil.h164 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/
Djs_generator.cc789 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/
Dgenerator_impl.cc1500 out << FloatToString(fl->value) << "f"; in EmitLiteral()
/third_party/skia/third_party/externals/tint/src/writer/glsl/
Dgenerator_impl.cc1999 out << FloatToString(fl->value) << "f"; in EmitLiteral()
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl.cc2986 out << FloatToString(fl->value) << "f"; in EmitLiteral()
/third_party/flatbuffers/src/
Didl_parser.cpp3629 value.constant = FloatToString(field->default_real(), 16); in Deserialize()