From 0da197d59361f8971b7e509778377646c84c9723 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 7 Sep 2004 01:28:52 +0000 Subject: [PATCH] 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 --- say.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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