calculator test

This document is only available with a paid isurv subscription.

function calcLength() { //Get values var origLength = Number(document.Length.origLength.value); var origUnit = document.Length.LengthOrigUnit.value; var newUnit = document.Length.LengthNewUnit.value; var mLength; var newLength; //convert to metres switch(origUnit) { case 'metre': mLength=origLength * 1; break; case 'kilometre': mLength=origLength * 1000; break; case 'millimetre': mLength=origLength * 0.001; break; case 'centimetre': mLength=origLength * 0.01; break; case 'mile': mLength=origLength * 1609.344; break; case 'yard': mLength=origLength * 0.9144; break; case 'foot': mLength=origLength * 0.3048; break; case 'inch': mLength=origLength * 0.0254; break; default: mLength=origLength * 1; break; } switch(newUnit) { case 'metre': newLength=mLength * 1; break; case 'kilometre': newLength=mLength * 0.001; break; case 'millimetre': newLength=mLength *...

Explore the subscription options here to get full access to isurv, including downloads.

Try isurv for 1 month!

You can now get unlimited access to all isurv channels with our 1-month pass, available for only £39. To find out more, enquire with our team using our form.

Sign up for the isurv newsletter to receive a monthly round-up of the latest isurv updates.

For further support, please contact us by emailing isurv@rics.org or calling +44 (0) 247 686 8584