Assuming test3 is required, the following 2 results were found.
So this isn't quite right, so let's get a regex that rounds numbers up but pays attention to where the decimal point is: v_Test3 = 12.000; info v_Test3.toString().replaceAll("^(^-?\\d+\\.\\d*[1-9])(0+$)|(\\.0+$)", "$1", false); // yields 12 v_Test4 =...
an integer"; try { v_Test2 = "Bar"; info v_Test2.toLong(); } catch(e) { info "Couldn't convert 'Bar' to an integer"; try { v_Test3 = "Everyday I'm Nesting..."; info v_Test3.toLong(); } catch(e) { info "Couldn't convert 'Everyday...' to an integer"; try...