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.
isinf
1 parent 8421c03 commit b10b1ddCopy full SHA for b10b1dd
stdlib/TOML/src/print.jl
@@ -78,7 +78,7 @@ printvalue(f::MbyFunc, io::IO, value::Integer; _...) =
78
Base.print(io, Int64(value)) # TOML specifies 64-bit signed long range for integer
79
printvalue(f::MbyFunc, io::IO, value::AbstractFloat; _...) =
80
Base.print(io, isnan(value) ? "nan" :
81
- isinf(value) ? string(value > 0 ? "+" : "-", "inf") :
+ !(isfinite(value)::Bool) ? string(value > 0 ? "+" : "-", "inf") :
82
Float64(value)) # TOML specifies IEEE 754 binary64 for float
83
function printvalue(f::MbyFunc, io::IO, value::AbstractString; _...)
84
Base.print(io, "\"")
0 commit comments