Simplification

This commit is contained in:
JP Simard 2020-12-23 22:10:26 -05:00
parent 8695c0bd11
commit bf7793c6f5
No known key found for this signature in database
GPG Key ID: 184C3F2916202C58
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ extension ScalarConstructible where Self: FloatingPoint & SexagesimalConvertible
case ".inf", ".Inf", ".INF", "+.inf", "+.Inf", "+.INF":
return .infinity
case "-.inf", "-.Inf", "-.INF":
return -Self.infinity
return -.infinity
case ".nan", ".NaN", ".NAN":
return .nan
default: