# DegreesToRadians

**URL:** <https://forums.unrealengine.com/t/degreestoradians/301779>\
**Category:** C++\
**Tags:** UE4-6, unreal-engine, question, CPP\
**Created:** [December 16, 2014, 7:33pm UTC](https://forums.unrealengine.com/t/degreestoradians/301779 "2014-12-16T19:33:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucasncv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucasncv](https://forums.unrealengine.com/u/lucasncv)\
**Post date:** [December 16, 2014, 7:33pm UTC](https://forums.unrealengine.com/t/degreestoradians/301779/1 "2014-12-16T19:33:24Z")

</div>

Hi, before 4.6 I could to this:

```
FVector2D AnglesDeg;
FVector2D AnglesRad = FMath::DegreesToRadians(AnglesDeg);

```

But now it seems the template version of FMath::DegreesToRadians only returns a float, so that gives an error.

```
template<class T>
static float RadiansToDegrees(T const& RadVal)

```

What’s the reasoning behind this change?

---

<div class="post-metadata">

**Author:** ![lucasncv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucasncv](https://forums.unrealengine.com/u/lucasncv)\
**Post date:** [September 25, 2017, 10:52pm UTC](https://forums.unrealengine.com/t/degreestoradians/301779/2 "2017-09-25T22:52:12Z")

</div>

Closing this very old question since it’s not relevant anymore.
