No c code? Justin
> -----Original Message----- > From: Paolo Piponi [mailto:[EMAIL PROTECTED]] > Sent: 05 February 2003 11:59 > To: '[EMAIL PROTECTED]' > Subject: [ cf-dev ] 2+2 != 4 (not in CFX tag anyway) > > > I found a not so exciting difference between CF5 and MX. > > In CF5, 2+2=4 > > In CFMX this is not correct. 2+2=4.0 > > What's the difference? I hear you cry. Well, not a lot of you code > correctly, but if your code wasn't aware of this change it makes > a world of > difference, especially where you are accepting values and passing them > straight on in raw to third party software that DOES care. > > Want some proof? Here's a dll that returns the raw data sent by CF: > > http://66.70.32.10/public/CFXVar.zip > > Once registered the following code returns different results in > CF5 and MX. > If a simple '4' is sent to the tag then fine. However, once you > do anything > to reach that '4' such as '2+2' it becomes 4.0: > > ============================================ > <cfset temp=2> > <cfset temp=temp+2> > <CFX_VAR VAR=#temp#> > <cfoutput>#cfx.result#</cfoutput> > ============================================ > > Not the end of the world, but worth mentioning here just in case someone > ever has the same problem again. > > BTW If line 3 is changed to "<CFX_VAR VAR=#evaluate(temp)#>" then > it returns > correctly. What is going on? > > Okay, our C developer had too much time on his hands. > > Paolo > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
