Csound Csound-dev Csound-tekno Search About

[Cs-dev] [ csound-Bugs-3288853 ] print(k)s prints wrong negative values with format %d

Date2011-04-27 08:19
From"SourceForge.net"
Subject[Cs-dev] [ csound-Bugs-3288853 ] print(k)s prints wrong negative values with format %d
Bugs item #3288853, was opened at 2011-04-18 12:40
Message generated for change (Settings changed) made by jpff
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3288853&group_id=81968

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Opcodes
>Group: csound5
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Joachim Heintz (joachimheintz)
Assigned to: Nobody/Anonymous (nobody)
Summary: print(k)s prints wrong negative values with format %d

Initial Comment:
seems like all negative integers are printed  wrong (-1 as 0, -2 as -1 etc) with the prints and printks opcodes, when using the %d formatter (%.0f or the printf opcodes are ok):


instr 1
prints "-1 = %d with format d, but should be %.0f%n", -1, -1
endin


i 1 0 0



----------------------------------------------------------------------

>Comment By: John ffitch (jpff)
Date: 2011-04-27 08:19

Message:
The rounding used in pronts was perverse (and wrong).  Now uses the same
rounding as elsewhere.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3288853&group_id=81968

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-04-27 08:46
Fromjoachim heintz
SubjectRe: [Cs-dev] [ csound-Bugs-3288853 ] print(k)s prints wrong negative values with format %d
thanks for the fix!	
	j

Am 27.04.2011 09:19, schrieb SourceForge.net:
> Bugs item #3288853, was opened at 2011-04-18 12:40
> Message generated for change (Settings changed) made by jpff
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3288853&group_id=81968
> 
> Please note that this message will contain a full copy of the comment thread,
> including the initial issue submission, for this request,
> not just the latest update.
>> Category: Opcodes
>> Group: csound5
>> Status: Closed
>> Resolution: Fixed
> Priority: 5
> Private: No
> Submitted By: Joachim Heintz (joachimheintz)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: print(k)s prints wrong negative values with format %d
> 
> Initial Comment:
> seems like all negative integers are printed  wrong (-1 as 0, -2 as -1 etc) with the prints and printks opcodes, when using the %d formatter (%.0f or the printf opcodes are ok):
> 
> 
> instr 1
> prints "-1 = %d with format d, but should be %.0f%n", -1, -1
> endin
> 
> 
> i 1 0 0
> 
> 
> 
> ----------------------------------------------------------------------
> 
>> Comment By: John ffitch (jpff)
> Date: 2011-04-27 08:19
> 
> Message:
> The rounding used in pronts was perverse (and wrong).  Now uses the same
> rounding as elsewhere.
> 
> ----------------------------------------------------------------------
> 
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3288853&group_id=81968
> 
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net