bcquality/microsoft/knowledge/data-modeling/round-direction-symbols-use-magnitude.bad.al
Jesper Schulz-Wedde bcc01b3996 Add foundational AL developer knowledge
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-18 15:42:44 +02:00

8 lines
270 B
AL

codeunit 50601 "Directed Rounding Bad"
{
procedure FloorAmount(Value: Decimal; Precision: Decimal): Decimal
begin
// For negative values, '<' rounds toward zero rather than toward negative infinity.
exit(Round(Value, Precision, '<'));
end;
}