We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
float_type_with_fallback
1 parent 37ce739 commit 9f89ee7Copy full SHA for 9f89ee7
src/utils.jl
@@ -777,7 +777,7 @@ end
777
"""
778
float_type_with_fallback(T::DataType)
779
780
-Return `T` if it is a Real; otherwise return `float(Real)`.
+Return `T` if it is a non-integer Real, `float(T)` for integer types, and `float(Real)` otherwise.
781
782
float_type_with_fallback(::Type) = float(Real)
783
float_type_with_fallback(::Type{Union{}}) = float(Real)
0 commit comments