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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Jun 7 03:51:41 CDT 2010


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.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list