Let( [
isException = Case(
Mod (dataNumber; 100) = 11 or
Mod (dataNumber; 100) = 12 or
Mod (dataNumber; 100) = 13; 1) ;
last = Mod ( dataNumber ; 10 )
];
Case ( isException ; "th"; last = 1; "st"; last = 2; "nd"; last = 3 ; "rd"; "th") )
Pretty simple - but powerful!
No comments:
Post a Comment