afrunding
Afrunding is the process of reducing a number to a value that is less than or equal to the original value according to a chosen precision. In mathematics and computer science, this is typically achieved by the floor operation, often written as floor(x), which returns the greatest integer not greater than x. When rounding to a fixed number of decimal places, afrunding is performed by computing floor(x * 10^d) / 10^d, where d is the number of decimals.
Afrunding is distinct from rounding to the nearest value or rounding up. For example, afrunding 3.7 to
In computing and software, afrunding is implemented by functions such as floor in many programming languages
Variants include truncation, which removes digits without adjusting the remaining value toward negative infinity, and banker's
See also: floor function, truncation, rounding (mathematics).