/* * Copyright (c) 2023, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web { float CSSPixels::to_float() const { return static_cast(m_value) / fixed_point_denominator; } double CSSPixels::to_double() const { return static_cast(m_value) / fixed_point_denominator; } int CSSPixels::to_int() const { return m_value / fixed_point_denominator; } }