Skip to content

Ordinal Generator #99

@alyx

Description

@alyx
Name About Title Labels Assignees
Feature Request Number formatting Ordinal Generator feature @alyx

Is your feature request related to a problem? Please describe.
As a plugin developer, I want to call a function to find the correct ordinal for an individual number in an ordered list - e.g. ordinal(3) -> 3rd or ordinal(3) -> 'rd' - so that I can easily ensure my ordered lists are grammatically correct without manually duplicating the logic calls for finding the correct value each time.

Describe the solution you'd like
A method, either on the existing NumberUtil, or as part of the new math module to perform this function.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions