You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ordinal() doesn't work with str(float([int])) #518
(Apologize if the issue seems a bit artificial - I'm evaluting a PBT tool using humanize, so it is not a real production use case, but I can promise it is not agent slop.)
The first three return "1st" while the last returns "1.0", since int("1.0") fails.
IDK if it necessarily a bug but I do think the behavior is confusing. It is similar to #414 but has a slightly different focus. Feel free to close but thought I'd report!
Activity
hugovk commentedon Nov 16, 2026
Thanks for the report!
Let's close it, it does seem a bit artificial to pass in "1.0" via
str(float(1)), and1and1.0and"1"all work.