-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (64 loc) · 2.79 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>QuaNum</title>
<script src="quanum.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width" />
</head>
<body>
<div id="head">
<h1>QuaNum</h1>
</div>
<div class="flex container">
<div class="contents">
<h2>本页目录</h2>
<ul>
<li><a href="#download">下载</a></li>
<li><a href="#grammar">语法</a></li>
<li><a href="#examples">范例</a></li>
</ul>
</div>
<div>
<h2 id="download">下载</h2>
<a href="quanum.js" download="quanum.js"><button>立即下载QuaNum</button></a>
<h2 id="grammar">语法</h2>
<h2 id="examples">范例</h2>
<pre><code>console.log(qn.plus(<span class="code-string">"6451.895"</span>, <span class="code-string">456.00"</span>));<wbr /><span class="code-comment">//"0.3"</span>
console.log(qn.times(<span class="code-string">"123"</span>, <span class="code-string">"456"</span>));//
console.log(qn.minus(<span class="code-string">"6451.895"</span>, <span class="code-string">"456.00"</span>));//
console.log(qn.divide(<span class="code-string">"2569."</span>, <span class="code-string">"4560.1"</span>));//
console.log(qn.max(<span class="code-string">"-96.4"</span>, <span class="code-string">"9.6"</span>));//"9.6"
console.log(qn.min(<span class="code-string">"759.15"</span>, <span class="code-string">"0."</span>));//"0."
console.log(qn.random(<span class="code-string">"-8.5"</span>, <span class="code-string">"8.5"</span>));
console.log(qn.floor(<span class="code-string">"-89.439"</span>));//
console.log(qn.pi(<span class="code-number">30</span>));<wbr /><span class="code-comment">//"3.14159265358979323846264338328336352614923565689717403037203125"</span>
console.log(qn.pow("123.","0."));//"1."
console.log(qn.abs("-8.6"));//"8.6"
console.log(qn.fact("6."));//
console.log(qn.sin("0.5"));//
console.log(qn.cos("0.5"));//
console.log(qn.tan("0.5"));//
console.log(qn.int("84.6"));//"84."
console.log(qn.sqrt("2."));//</code></pre>
</div>
</div>
<script>
console.log(qn.times("123.", "456."));
console.log(qn.minus("6451.895", "456.01"));
console.log(qn.divide("2569.", "4560.1"));
console.log(qn.random("-8.5", "8.5"));
console.log(qn.floor("-89.439"));
console.log(qn.fact("6."));
console.log(qn.sin("0.5"));
console.log(qn.cos("0.5"));
console.log(qn.tan("0.5"));
console.log(qn.sqrt("2."));
</script>
<div id="footer" class="container">
<h2>QuaNum</h2>
此站点为开源。<a href="https://github.com/yblui/QuaNum">提升此页面。</a>
</div>
</body>
</html>