Brian Dunning's FileMaker Custom Functions

IndianNotation ( number )

Returns a number formatted according to the Indian notation

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

Daniele Raybaudi   Daniele Raybaudi - Show more from this author
ACI
http://www.aci.it

Share on Facebook Share on Twitter

  Sample input:
IndianNotation ( 234578 )
IndianNotation ( 1000000000000 )
IndianNotation ( 1234567890127.413 )
  Sample output:
2,34,578
10,00,00,00,00,000
12,34,56,78,90,127.413

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

This recursive custom function generates a number formatted according to the Indian notation that can be treated like any other number of the DB, including sorting.

It has no practical limitations because the mask is dynamically generated based on the length of the number.

It evaluates both positive and negative numbers, integers or decimal.

The decimal part is separated from the integer part by a dot, if we are in America, by a comma, if we are in Italy. ;-)

The calculated field must return a result of type number and must be formatted in Layout Mode "As entered", not "General".

 

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: