[asterisk-users] How to play Floating point numbers?

Danny Nicholas danny at debsinc.com
Mon Jun 7 08:07:02 CDT 2010


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




More information about the asterisk-users mailing list