Assuming test4 is required, the following 2 results were found.
v_Test3 = 12.000; info v_Test3.toString().replaceAll("^(^-?\\d+\\.\\d*[1-9])(0+$)|(\\.0+$)", "$1", false); // yields 12 v_Test4 = 12.300; info v_Test4.toString().replaceAll("^(^-?\\d+\\.\\d*[1-9])(0+$)|(\\.0+$)", "$1", false); // yields 12.3 v_Test5 =...
"Everyday I'm Nesting..."; info v_Test3.toLong(); } catch(e) { info "Couldn't convert 'Everyday...' to an integer"; try { v_Test4 = "Another for the road..."; info v_Test4.toLong(); } catch(e) { info "Couldn't convert 'Another...' to an integer"; } } }...