mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:27:35 +00:00
LibWeb: Serialize Angle according to spec
This commit is contained in:
parent
e72b7c5de2
commit
5dc82db0cb
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ Angle Angle::percentage_of(Percentage const& percentage) const
|
||||||
|
|
||||||
ErrorOr<String> Angle::to_string() const
|
ErrorOr<String> Angle::to_string() const
|
||||||
{
|
{
|
||||||
return String::formatted("{}{}", m_value, unit_name());
|
return String::formatted("{}deg", to_degrees());
|
||||||
}
|
}
|
||||||
|
|
||||||
float Angle::to_degrees() const
|
float Angle::to_degrees() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue