Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BankerRoundInt ¶
BankerRoundInt rounds a float64 value representing a monetary amount to the nearest integer using banker's rounding.
This method is designed specifically for financial systems where currency values are stored as the smallest denomination (e.g., cents for USD) in int64 variables.
It considers the sign of the value and rounds to the nearest even integer when the fractional part is exactly 0.5.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.