1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:57:35 +00:00

LibWeb: Change calc node representation from float to double

This commit is contained in:
stelar7 2023-05-27 21:10:21 +02:00 committed by Andreas Kling
parent f5da6d61b4
commit 421559d725
22 changed files with 75 additions and 75 deletions

View file

@ -20,15 +20,15 @@ public:
static Optional<Type> unit_from_name(StringView);
Frequency(int value, Type type);
Frequency(float value, Type type);
static Frequency make_hertz(float);
Frequency(double value, Type type);
static Frequency make_hertz(double);
Frequency percentage_of(Percentage const&) const;
ErrorOr<String> to_string() const;
float to_hertz() const;
double to_hertz() const;
Type type() const { return m_type; }
float raw_value() const { return m_value; }
double raw_value() const { return m_value; }
bool operator==(Frequency const& other) const
{
@ -39,7 +39,7 @@ private:
StringView unit_name() const;
Type m_type;
float m_value { 0 };
double m_value { 0 };
};
}