Csound Csound-dev Csound-tekno Search About

[Cs-dev] strtod with ratios

Date2014-04-29 19:25
Fromjoachim heintz
Subject[Cs-dev] strtod with ratios
hi all -

this used to work in csound5, but no more in csound6:
iNum strtod "1/12"
-> INIT ERROR in instr 1: strtod: invalid format

is this a bug, or worked it in csound5 by chance?

thanks -

	joachim

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-29 20:35
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] strtod with ratios
AttachmentsNone  

Date2014-04-29 20:39
Fromjoachim heintz
SubjectRe: [Cs-dev] strtod with ratios
ok, thanks.
	j

Am 29.04.2014 21:35, schrieb jpff@cs.bath.ac.uk:
> I cannot believe it worked in cs5; the code is the same with a small
> variant for OSX ad BSD systems related to locales.  It just calls
> strtod(3) to do the conversion.  Might do better checking of course,
> but it looks the same to me
>
> ==John
>
> Quoting joachim heintz :
>
>> hi all -
>>
>> this used to work in csound5, but no more in csound6:
>> iNum strtod "1/12"
>> -> INIT ERROR in instr 1: strtod: invalid format
>>
>> is this a bug, or worked it in csound5 by chance?
>>
>> thanks -
>>
>> 	joachim
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
>> unparalleled scalability from the best Selenium testing platform available.
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-30 01:22
FromPete Goodeve
SubjectRe: [Cs-dev] strtod with ratios
AttachmentsNone  

Date2014-04-30 11:00
Fromjoachim heintz
SubjectRe: [Cs-dev] strtod with ratios
i do believe this. my surprise comes from an example in csoundqt 
(midi-tunings) which uses this. it does not work any more in csound6, 
and now i saw it's because of this strod expression. anyway, i will 
change the code for the udo.

	joachim


Am 30.04.2014 02:22, schrieb Pete Goodeve:
> Just did a quick check in my 5.19 installation.  I get exactly the
> same 'invalid format' error there.  Something like 'strtod "0.1666" '
> works fine.
>
> 	-- Pete --
>
> On Tue, Apr 29, 2014 at 09:39:54PM +0200, joachim heintz wrote:
>> ok, thanks.
>> 	j
>>
>> Am 29.04.2014 21:35, schrieb jpff@cs.bath.ac.uk:
>>> I cannot believe it worked in cs5; the code is the same with a small
>>> variant for OSX ad BSD systems related to locales.  It just calls
>>> strtod(3) to do the conversion.  Might do better checking of course,
>>> but it looks the same to me
>>>
>>> ==John
>>>
>>> Quoting joachim heintz :
>>>
>>>>
>>>> this used to work in csound5, but no more in csound6:
>>>> iNum strtod "1/12"
>>>> -> INIT ERROR in instr 1: strtod: invalid format
>>>>
>>>> is this a bug, or worked it in csound5 by chance?
>>>>
>>>> thanks -
>>>>
>>>> 	joachim
>>>>
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
>>>> unparalleled scalability from the best Selenium testing platform available.
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
>>> unparalleled scalability from the best Selenium testing platform available.
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
>> unparalleled scalability from the best Selenium testing platform available.
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net