House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Adding decimals

  << Previous Post |  RSS |  Tree View |  Sort Oldest First |  Subscribe to this Group Next >> 

Adding decimals

> This is weak... but it is late ... hopefully some of you are Philip Arnold 05/21/2003 04:19 AM
Try: Howie Hamlin 05/21/2003 01:49 AM
I think I remember seeing a similar problem...IIRC, the resolution was to Charlie Griefer 05/21/2003 01:44 AM
This is weak... but it is late ... hopefully some of you are still online: Paul Giesenhagen 05/21/2003 01:27 AM

05/21/2003 04:19 AM
Author: Philip Arnold Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24105#121295 > This is weak... but it is late ... hopefully some of you are > still online: > > <cfset variables.grossWeight = variables.totalShipWeight + .5> > > It doesn't like the .5  How would you write that to add those > two together?  (variables.totalShipWeight is a number). As mentioned, adding a zero in front solves the problem - the reason is that without a starting number, CF believes it's looking at a Structure issue HTH to explain it
05/21/2003 01:49 AM
Author: Howie Hamlin Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24105#121290 Try: <cfset variables.grossWeight = variables.totalShipWeight + 0.5> Regards, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server ((())) PrismAV is Coming ((())) ----- Excess quoted text cut - see Original Post for more -----
05/21/2003 01:44 AM
Author: Charlie Griefer Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24105#121289 I think I remember seeing a similar problem...IIRC, the resolution was to use 0.5 instead of .5 Hope that's right.  I'm old and my mind is feeble :) charlie This is weak... but it is late ... hopefully some of you are still online: <cfset variables.grossWeight = variables.totalShipWeight + .5> It doesn't like the .5  How would you write that to add those two together? (variables.totalShipWeight is a number). Thanks in advance! Paul Giesenhagen QuillDesign
05/21/2003 01:27 AM
Author: Paul Giesenhagen Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24105#121285 This is weak... but it is late ... hopefully some of you are still online: <cfset variables.grossWeight = variables.totalShipWeight + .5> It doesn't like the .5  How would you write that to add those two together?   (variables.totalShipWeight is a number). Thanks in advance! Paul Giesenhagen QuillDesign
<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference