Brian Dunning's FileMaker Custom Functions

RoundUp0_5 ( Number )

Rounds any number up to the nearest 0.5

  Be the first to rate this function Log in to vote

Carl Schwarz   Carl Schwarz - Show more from this author
Schwarz Software
https://schwarzsoftware.com.au

Share on Facebook Share on Twitter

  Sample input:
RoundUp0_5 ( 0.1 )
  Sample output:
0.5

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

This function will round any positive or negative number up to the nearest 0.5. It does not round down.
This can be useful for calculating package weights for example when you need to round up the mass to the nearest half.
It simply tests the range of the input decimal and replaces it with the appropriate decimal.

 

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: