iv)Float to String
Float value can be converted to string by using the function or method toString() or parseFloat.
Example
<html>
<body>
<script type="text/javascript">
var a = 5.33;
a.toString();
var c = a.toString();
document.write("Float to String is "+c);
</script>
</body>
</html>
Output
No comments:
Post a Comment