Ordinals for All Numeric Types Icon

Ordinals for All Numeric Types

This snippet will extend all numerical types with a method for returning .

Ordinals for All Numeric TypesOverview

This Snippet will extend all numerical types with a method for returning the English ordinal, i.e. 1st, 2nd, 3rd, 4th, etc. Note that floating-point types will suffer an implicit integer coercion without rounding. The method is based on this page, where you can find Similar code in short-hand style as well (not that rewriting the following in ternary Logic should prove an unsurmountable problem for anyone).

NEW

Fixed some bugs.

Ordinals for All Numeric TypesInformation

Version
N/A
Date
09.29.10
License
Free
Language
English
File Size
N/A
Developer
Category
SubCategory
Operating Systems
Windows ,Linux,Mac OS,BSD,Solaris
System Requirements
No additional system requirements.
Sum & Product of an Array Icon
How to sum all the numbers in an array,
Generate Random Password ruby Icon
Generates a secure, entirely random password of the specified length.
More
MP4Info Icon
MP4Info is a library providing read (and, someday, write) access to MP4 tags.
Free
Random Alphanumeric String Generator Icon
This is a script for ruby.
Free
STIM Icon
STIM is simply a web application for maintaining a to-do list.
Lots of Array methods Icon
This is a script for ruby.
Free
Isefad roguelike game Icon
This is an extensible roguelike game, written in Ruby.
Making if and unless consistent? Icon
I've been thinking why some Ruby constructions are inconsistent.
Free
PNG-24 Alpha support for IE Icon
Get alpha channel on web, that's possible with PNG-24 images and this trick.
Free
Real Target Icon
Find the real target of a symbolic link.
Free
More