]> git.ipfire.org Git - thirdparty/asterisk.git/commit
say.c: Fix cents off-by-one due to floating point rounding.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 10 Jan 2024 13:26:05 +0000 (08:26 -0500)
committerNaveen Albert <asterisk@phreaknet.org>
Tue, 30 Apr 2024 15:17:14 +0000 (15:17 +0000)
commitc38f352d209f23aa7202d74279ac139aaa07a58e
tree970452a5257629bd5f9d2e0890b6769f06b08dcb
parente634da7108b1f14188ae2fefa71251e8c3e743d9
say.c: Fix cents off-by-one due to floating point rounding.

Some of the money announcements can be off by one cent,
due to the use of floating point in the money calculations,
which is bad for obvious reasons.

This replaces floating point with simple string parsing
to ensure the cents value is converted accurately.

Resolves: #525
funcs/func_sayfiles.c
main/say.c