mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Windows lacks exp10, so use exp instead.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15715 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
ddd108fcf3
commit
3dc3c06866
@ -1602,7 +1602,7 @@ integer_to_words(gint64 val)
|
||||
|
||||
while (val >= 1000) {
|
||||
log_val = log10(val) / 3 + FUDGE;
|
||||
pow_val = exp10(log_val * 3) + FUDGE;
|
||||
pow_val = exp(log_val * 3 * G_LN10) + FUDGE;
|
||||
this_part = val / pow_val;
|
||||
val -= this_part * pow_val;
|
||||
tmp = integer_to_words(this_part);
|
||||
|
Loading…
Reference in New Issue
Block a user