mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 08:32:04 +02:00
This API will always succeed in creating a String representing the provided number in base-10. (cherry picked from commit dd419b5a8df3b9a32478c4a8f0ea9f70334214cd; amended to update the rest of the system. No conflicts though!)
20 lines
446 B
C++
20 lines
446 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
|
|
* Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
|
|
* Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "NumberStyleValue.h"
|
|
|
|
namespace Web::CSS {
|
|
|
|
String NumberStyleValue::to_string() const
|
|
{
|
|
return String::number(m_value);
|
|
}
|
|
|
|
}
|