[asterisk-users] How to play Floating point numbers?
Hi all, Is there any way to play floating number using asterisk dialplan? Thanks,Faheem -- _ -- 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
Re: [asterisk-users] How to play Floating point numbers?
On Mon, Jun 07, 2010 at 01:33:35AM -0700, Faheem wrote: 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. One option is to calculate the integer part and the fractional part, and play them back separately (with a dot in between). -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir -- _ -- 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
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
Re: [asterisk-users] How to play Floating point numbers?
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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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
Re: [asterisk-users] How to play Floating point numbers?
Thanks Danny! It solved my problem. Faheem --- On Mon, 6/7/10, Danny Nicholas da...@debsinc.com wrote: From: Danny Nicholas da...@debsinc.com Subject: Re: [asterisk-users] How to play Floating point numbers? To: 'Asterisk Users Mailing List - Non-Commercial Discussion' asterisk-users@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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 -- _ -- 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