Brian Dunning's FileMaker Custom Functions

NumberSuffix ( var )

Adds proper superscripted suffix to an integer (ie, 1st, 2nd, 3rd, 4th)

  Average rating: 4.7 (29 votes) Log in to vote

John Knight   John Knight
dB SPL
http://www.filemaker.com

Share on Facebook Share on Twitter

  Sample input:
NumberSuffix ( 12 )
  Sample output:
12th

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Adds proper suffix to number.
Accounts for 11, 12 & 13.
Makes suffix superscript, if possible (doesn't apply to tooltips, still adds the suffix, it's just not superscript)

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: