Brian Dunning's FileMaker Custom Functions

PercentInText

Converts a numerical percentage to text in a 'Payment' format

  Average rating: 4.8 (26 votes) Log in to vote

Nur Ritter   Nur Ritter
Azimuth Advances
http://www.azimuthadvances.com

Share on Facebook Share on Twitter

  Sample input:
15.50%
  Sample output:
Fifteen and 50/100 percent (15.50%)

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

This Function is based on a few others that I've seen here and elsewhere, but addresses problems that I encountered with those other functions.

Specifically, I ran into issues with the conversion of values to the right of the decimal place; e.g., '15.50' would be converted to 'Fifteen and 5/100 percent (15.50%).' In some cases, there were also issues with the conversions when the value entered was 100%.

For this Function, make sure that the calculation result is 'text' and that the storage is set to 'unstored.' Also, the input values should always be to two decimal places (e.g., 10.05).

 

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: