Brian Dunning's FileMaker Custom Functions

CheckDollarValue ( number )

counts the number of characters to the right of the decimal

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

Ryan Thorpe   Ryan Thorpe
Vanguard Research & Title Services, Inc.
http://vgrti.com

Share on Facebook Share on Twitter

  Sample input:
CheckDollarValue ( 150.00 )CheckDollarValue ( 150.001 )CheckDollarValue ( 150 )
  Sample output:
230

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

Filemaker's Data Formatting for currency can hide extra characters if the user limits the fixed number of decimals. When this function is used with conditional formatting, the extra character(s) can be flagged.

 

Comments

comment   comment, VR
Dec 5, 2013
If "150.00" is supposed to return 2, then the "number" parameter is not a number. Perhaps "amount" would be a better name for it?
 

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.

Under construction. Email me your wish list for improvements.