From: Mark Spencer Date: Tue, 7 Sep 2004 01:28:52 +0000 (+0000) Subject: Compute power of 10 using ints instead of silly floats (bug #2390) X-Git-Tag: 1.0.0~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da197d59361f8971b7e509778377646c84c9723;p=thirdparty%2Fasterisk.git Compute power of 10 using ints instead of silly floats (bug #2390) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3734 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/say.c b/say.c index e66aa22694..7eed22cc63 100755 --- a/say.c +++ b/say.c @@ -1194,6 +1194,14 @@ static int ast_say_number_full_nl(struct ast_channel *chan, int num, char *ints, return res; } +static int exp10_int(int power) +{ + int x, res= 1; + for (x=0;x