Number.toString

n進数に変換した値を得る

構文

Number.toString(n)

引数

n=数値

例文

<html>
<head>
<title>Number.toString</title>
</head>

<body>

<!--n進数に変換した値を得るのサンプル-->
<script type="text/javascript">
var num=65535;
document.write(num.toString(16)); // 16進数に変換
</script>

</body>
</html>

関連記事

スポンサーリンク

fsockopenでSSLサーバに接続する

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る