> JavaScript has an annoying habit of treating numbers as strings.

Well, actually, this has nothing to do with JavaScript, and everything to do
with where your values come from.

Within an HTML form, fields contain string values. If you create a variable
in JavaScript, the value of that variable will determine the datatype.
 
> I usually just divide appropriate values by one to force them 
> to numbers (eg: hrRate/1), and it should then add them correctly.

JavaScript provides parseInt() and parseFloat() to cast values to integers
and floats, respectively.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271649
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to