Convert string to integer : Boolean Utilities « Development « JavaScript DHTML






Convert string to integer


<html>
<head>
<title>DynAPI Examples - Functions</title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.library');
dynapi.library.include('dynapi.functions');
dynapi.library.include('dynapi.api');
</script>
</head>
<body>
<font face="arial" size="2">
<script>
var doc=document;
f=dynapi.functions;


doc.write('toInteger: '+f.toInteger('110,013.53')+'<br><br>');
</script>
</font>
</body>
</html>
           
       








dynapi.zip( 791 k)

Related examples in the same category

1.Convert 'true', 'false' to boolean
2.Choose value based on boolean expression
3.Convert string to float