1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:37: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

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