Brian Dunning's FileMaker Custom Functions

RoundBanker ( Number ; Precision )

Round numbers by "Banker's Rounding" (round half to even).

  Be the first to rate this function Log in to vote

Koji Takeuchi   Koji Takeuchi - Show more from this author
TonicNote, Inc.
https://tonicnote.com

Share on Facebook Share on Twitter

  Sample input:
RoundBanker ( 54.45 ; 1 )
  Sample output:
54.4

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

RoundBanker ( Number ; Precision )
2022-10-13, Koji Takeuchi

description:
Round numbers by "Banker's Rounding" (round half to even).

Example:
RoundBanker ( 54.34 ; 1 )
-> 54.3
RoundBanker ( 54.36 ; 1 )
-> 54.4
RoundBanker ( 54.35 ; 1 )
-> 54.4
RoundBanker ( 54.45 ; 1 )
-> 54.4

 

Comments

Michael Horak   Michael Horak, *COMMENT Visual Realisation
Nov 4, 2022
Compare: https://www.briandunning.com/cf/408
 

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: