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.
2 parents b5cc598 + 2203a07 commit 01afda3Copy full SHA for 01afda3
src/en.jl
@@ -213,6 +213,9 @@ function spelled_out_en(number::Rational; british::Bool = false, dict::Symbol =
213
return isone(_num) ? word : word * "s"
214
end
215
216
+function spelled_out_en(number::AbstractIrrational; british::Bool = false, dict::Symbol = :modern)
217
+ throw(error("Please round the input number, as we support floating point printing but cannot support irrational printing."))
218
+end
219
220
# Fallback method if we do not know how to handle the input
221
function spelled_out_en(number; british::Bool = false, dict::Symbol = :modern)
0 commit comments