1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 11:18:13 +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

@ -15,13 +15,13 @@ Frequency::Frequency(int value, Type type)
{
}
Frequency::Frequency(float value, Type type)
Frequency::Frequency(double value, Type type)
: m_type(type)
, m_value(value)
{
}
Frequency Frequency::make_hertz(float value)
Frequency Frequency::make_hertz(double value)
{
return { value, Type::Hz };
}
@ -36,7 +36,7 @@ ErrorOr<String> Frequency::to_string() const
return String::formatted("{}hz", to_hertz());
}
float Frequency::to_hertz() const
double Frequency::to_hertz() const
{
switch (m_type) {
case Type::Hz: