reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
910 std::string roundtrip = convertToString(convertToDoubleFromString(second), 0, 3); 1013 ASSERT_EQ("10", convertToString(10.0, 6, 3)); 1014 ASSERT_EQ("1.0E+1", convertToString(10.0, 6, 0)); 1015 ASSERT_EQ("10100", convertToString(1.01E+4, 5, 2)); 1016 ASSERT_EQ("1.01E+4", convertToString(1.01E+4, 4, 2)); 1017 ASSERT_EQ("1.01E+4", convertToString(1.01E+4, 5, 1)); 1018 ASSERT_EQ("0.0101", convertToString(1.01E-2, 5, 2)); 1019 ASSERT_EQ("0.0101", convertToString(1.01E-2, 4, 2)); 1020 ASSERT_EQ("1.01E-2", convertToString(1.01E-2, 5, 1)); 1021 ASSERT_EQ("0.78539816339744828", convertToString(0.78539816339744830961, 0, 3)); 1022 ASSERT_EQ("4.9406564584124654E-324", convertToString(4.9406564584124654e-324, 0, 3)); 1023 ASSERT_EQ("873.18340000000001", convertToString(873.1834, 0, 1)); 1024 ASSERT_EQ("8.7318340000000001E+2", convertToString(873.1834, 0, 0)); 1025 ASSERT_EQ("1.7976931348623157E+308", convertToString(1.7976931348623157E+308, 0, 0)); 1026 ASSERT_EQ("10", convertToString(10.0, 6, 3, false)); 1027 ASSERT_EQ("1.000000e+01", convertToString(10.0, 6, 0, false)); 1028 ASSERT_EQ("10100", convertToString(1.01E+4, 5, 2, false)); 1029 ASSERT_EQ("1.0100e+04", convertToString(1.01E+4, 4, 2, false)); 1030 ASSERT_EQ("1.01000e+04", convertToString(1.01E+4, 5, 1, false)); 1031 ASSERT_EQ("0.0101", convertToString(1.01E-2, 5, 2, false)); 1032 ASSERT_EQ("0.0101", convertToString(1.01E-2, 4, 2, false)); 1033 ASSERT_EQ("1.01000e-02", convertToString(1.01E-2, 5, 1, false)); 1035 convertToString(0.78539816339744830961, 0, 3, false)); 1037 convertToString(4.9406564584124654e-324, 0, 3, false)); 1038 ASSERT_EQ("873.18340000000001", convertToString(873.1834, 0, 1, false)); 1039 ASSERT_EQ("8.73183400000000010e+02", convertToString(873.1834, 0, 0, false)); 1041 convertToString(1.7976931348623157E+308, 0, 0, false));