TotalInches = cm / 2.54 (check that) Feet = Int(inches / 12) Inches = TotalInches MOD 12
-----Original Message----- From: Brian Simpson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 March 2002 12:54 p.m. To: CF-Talk Subject: Conversion help, Centimeters to Feet Inches Conversion help, Centimeters to Feet Inches Anyone know how to convert Centimeters to Feet Inches? I have a customer that has all the data in Metric and wants it displayed in both Metric and US kg to lbs is easy: 1 kg = 2.204623 lbs 55 kg = 121.3 lbs <CFSET LBS = #GetProfileRecords.Weight# * 2.204623> <CFOUTPUT>#NumberFormat(LBS,'___._')#</CFOUTPUT> LBS 100 cm = 3.280 feet or 1 foot = 30.48 cm 166 cms = 5'6" How do you convert it to display properly in Feet' and Inches" ? Thanks for your help. ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

