Force precedence of constant arithemtic

(Relates to previous commit, forgot doubles. Leave me alone)
This commit is contained in:
Oliver Booth 2022-04-20 18:39:13 +01:00
parent 8f40dd8617
commit 00571983c6
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ public static class DoubleExtensions
/// <returns>The result of π * <paramref name="value" /> / 180.</returns>
public static double DegreesToRadians(this double value)
{
return Math.PI * value / 180.0;
return value * (Math.PI / 180.0);
}
/// <summary>