[asterisk-users] How to play Floating point numbers?
Faheem
faheem_imt at yahoo.com
Mon Jun 7 08:16:44 CDT 2010
Thanks Danny! It solved my problem.
Faheem
--- On Mon, 6/7/10, Danny Nicholas <danny at debsinc.com> wrote:
From: Danny Nicholas <danny at debsinc.com>
Subject: Re: [asterisk-users] How to play Floating point numbers?
To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users at lists.digium.com>
Date: Monday, June 7, 2010, 6:07 PM
This won't help with the exponential number, but is happy for currency or
any floating point number.
Exten => s,1,Set(XFERMAX=100.25)
exten => s,n,SayNumber(${XFERMAX})
exten => s,n,playback(digits/dollars)
exten => s,n,Set(XFERMAXC=${CUT(XFERMAX|\.|2)})
exten => s,n,SayNumber(${XFERMAXC})
exten => s,n,playback(digits/cents)
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Philipp von
Klitzing
Sent: Monday, June 07, 2010 7:57 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to play Floating point numbers?
Hi!
> > Hi all, Is there any way to play floating number using asterisk
> > dialplan?
>
> A floating point number has an exponent and mantissa. But I don't
> suppose you'de want to know that "you have 234 times 2 at the third
> power Dollars in your account".
He probably meant either overlap dial or variable length dialplans/
extensions. But in any case this one sentence question does need more
details.
Philipp
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100607/06b0476a/attachment-0001.htm
More information about the asterisk-users
mailing list